mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
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:
committed by
Mathew Sutcliffe
parent
4ec1db4b38
commit
fda587994d
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user