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

@@ -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;