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:
Klaus Basan
2014-02-05 21:47:36 +00:00
committed by Mathew Sutcliffe
parent 431b347cfd
commit 7a63768c83
19 changed files with 87 additions and 4 deletions

View File

@@ -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 ==
*/