Ref T539, tree view can select objects and hence refresh ATIS display

* select signal for tree view
* signal/slots and connects
This commit is contained in:
Klaus Basan
2019-02-14 23:34:20 +01:00
committed by Mat Sutcliffe
parent d68726080f
commit cc6adc6c40
5 changed files with 61 additions and 21 deletions

View File

@@ -73,6 +73,9 @@ namespace BlackGui
//! Request a text message to
void requestTextMessageWidget(const BlackMisc::Aviation::CCallsign &callsign);
//! This object has been selected
void objectSelected(const BlackMisc::Aviation::CAtcStation &station);
private:
//! Used model
const Models::CAtcStationTreeModel *stationModel() const;
@@ -86,12 +89,18 @@ namespace BlackGui
//! The selected object
BlackMisc::Aviation::CAtcStation selectedObject() const;
//! The selected object
BlackMisc::Aviation::CAtcStation selectedObject(const QModelIndex &index) const;
//! Suffix for index
QString suffixForIndex(const QModelIndex &index);
//! Expanded
void onExpanded(const QModelIndex &index);
//! Selected
void onSelected(const QItemSelection &selected, const QItemSelection &deselected);
//! Custom menu
void customMenu(const QPoint &point);