CValueObject virtual method toIcon, reprsenting the object as icon where applicable.

Currently used for status messages (severity), will be used for CAtcStation and others as well.
This commit is contained in:
Klaus Basan
2014-02-05 21:33:40 +00:00
committed by Mathew Sutcliffe
parent 4ec1db4b38
commit fda587994d
5 changed files with 34 additions and 14 deletions

View File

@@ -114,6 +114,9 @@ namespace BlackMisc
//! \brief Type as string
const QString &getTypeAsString() const;
//! \brief representing icon
virtual const QPixmap &toIcon() const override { return CStatusMessage::convertToIcon(*this); }
//! \brief Type as string
const QString &getSeverityAsString() const;
@@ -159,6 +162,9 @@ namespace BlackMisc
*/
static CStatusMessage getInfoMessage(const QString &message);
//! \representing icon
static const QPixmap &convertToIcon(const CStatusMessage &statusMessage);
protected:
/*!
* \brief Marshall to DBus