mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
Allows to display callsign / user / statusmessage as icon in views. refs #122
* Icons * update of resource file * update in CValueObject classes callsign / user / statusmessage * update in list models, data method for returning Pixmap
This commit is contained in:
committed by
Mathew Sutcliffe
parent
431b347cfd
commit
7a63768c83
@@ -51,6 +51,12 @@ namespace BlackMisc
|
||||
return QVariant::fromValue(*this);
|
||||
}
|
||||
|
||||
//! \copydoc CValueObject::toIcon()
|
||||
virtual const QPixmap &toIcon() const override
|
||||
{
|
||||
return CCallsign::convertToIcon(*this);
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Is empty?
|
||||
* \return
|
||||
@@ -168,6 +174,9 @@ namespace BlackMisc
|
||||
*/
|
||||
static QString unifyCallsign(const QString &callsign);
|
||||
|
||||
//! \representing icon
|
||||
static const QPixmap &convertToIcon(const CCallsign &callsign);
|
||||
|
||||
private:
|
||||
QString m_callsignAsSet;
|
||||
QString m_callsign;
|
||||
|
||||
Reference in New Issue
Block a user