Ref T80, improved completer

* no invalid combined codes in list
* sort by rank
* refresh completer strings when new codes are added
This commit is contained in:
Klaus Basan
2017-06-12 01:29:27 +02:00
parent fba521ecd5
commit 96c27c1c5b
2 changed files with 12 additions and 7 deletions

View File

@@ -118,10 +118,11 @@ namespace BlackGui
QScopedPointer<QCompleter> m_completerIcaoDescription;
BlackMisc::Aviation::CAircraftIcaoCode m_currentIcao;
Display m_display = DisplayIcaoAndId;
QStringList m_completerStrings; //!< the completer strings
//! Get the completer strings
//! \remark shared for performance reasons
static const QStringList &completerStrings();
const QStringList &completerStrings();
};
} // ns
} // ns