mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +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
@@ -32,7 +32,8 @@ namespace BlackMisc
|
||||
IndexId,
|
||||
IndexPassword,
|
||||
IndexRealName,
|
||||
IndexCallsign
|
||||
IndexCallsign,
|
||||
IndexCallsignIcon
|
||||
};
|
||||
|
||||
/*!
|
||||
@@ -137,6 +138,12 @@ namespace BlackMisc
|
||||
*/
|
||||
void setCallsign(const BlackMisc::Aviation::CCallsign &callsign) { m_callsign = callsign; }
|
||||
|
||||
//! \copydoc CValueObject::toIcon()
|
||||
virtual const QPixmap &toIcon() const override
|
||||
{
|
||||
return this->getCallsign().toIcon();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Equal operator ==
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user