mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-12 15:25:34 +08:00
refs #568, allow to stash from DB data view (model view)
* added required signal slots * moved models for stashing into aircraft model view * allow to unselect when stashed * fixed DB object highlighting and resize row height automatically
This commit is contained in:
@@ -37,6 +37,9 @@ namespace BlackGui
|
||||
//! Remove keys
|
||||
int removeDbKeys(const QList<KeyType> &keys);
|
||||
|
||||
//! Update or insert data (based on DB key)
|
||||
int replaceOrAddObjectsByKey(const ContainerType &container);
|
||||
|
||||
protected:
|
||||
//! Constructor
|
||||
explicit CViewWithDbObjects(QWidget *parent = nullptr);
|
||||
@@ -44,9 +47,9 @@ namespace BlackGui
|
||||
//! \copydoc QWidget::customMenu
|
||||
virtual void customMenu(QMenu &menu) const override;
|
||||
|
||||
private slots:
|
||||
//! Highlight DB data
|
||||
void ps_toggleDbData();
|
||||
protected slots:
|
||||
//! \copydoc CViewBaseNonTemplate::ps_toggleHighlightDbData
|
||||
virtual void ps_toggleHighlightDbData() override;
|
||||
};
|
||||
} // namespace
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user