mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
Tweak in icon / callsign
* conversion to Icon in callsign * toQIcon function
This commit is contained in:
@@ -99,6 +99,12 @@ namespace BlackMisc
|
||||
//! List of real ("TWR") and treated like ATC suffixes (e.g. OBS);
|
||||
static const QStringList &atcAlikeCallsignSuffixes();
|
||||
|
||||
//! Suffix to icon
|
||||
static const BlackMisc::CIcon &suffixToIcon(const QString &suffix);
|
||||
|
||||
//! Representing icon
|
||||
static const CIcon &convertToIcon(const CCallsign &callsign);
|
||||
|
||||
protected:
|
||||
//! \copydoc CValueObject::convertToQString()
|
||||
virtual QString convertToQString(bool i18n = false) const override;
|
||||
@@ -106,9 +112,6 @@ namespace BlackMisc
|
||||
//! Unify the callsign
|
||||
static QString unifyCallsign(const QString &callsign);
|
||||
|
||||
//! representing icon
|
||||
static const CIcon &convertToIcon(const CCallsign &callsign);
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CCallsign)
|
||||
QString m_callsignAsSet;
|
||||
|
||||
Reference in New Issue
Block a user