refs #304, centralized icons

* icons which can be rotated
* provide metadata
* integrated in CValueObjects
* added SVG support
This commit is contained in:
Klaus Basan
2014-08-02 19:08:17 +02:00
parent 6d5461cff8
commit 5873ec9359
31 changed files with 1262 additions and 564 deletions

View File

@@ -12,6 +12,7 @@
//! \file
#include "icon.h"
#include "valueobject.h"
#include <QDateTime>
@@ -100,7 +101,7 @@ namespace BlackMisc
void setSeverity(StatusSeverity severity) { this->m_severity = severity; }
//! Representing icon
virtual const QPixmap &toIcon() const override { return CStatusMessage::convertToIcon(*this); }
virtual CIcon toIcon() const override { return CStatusMessage::convertToIcon(*this); }
//! Type as string
const QString &getSeverityAsString() const;
@@ -139,7 +140,7 @@ namespace BlackMisc
static CStatusMessage getErrorMessage(const QString &message, StatusType type = CStatusMessage::TypeUnspecific);
//! Representing icon
static const QPixmap &convertToIcon(const CStatusMessage &statusMessage);
static const CIcon &convertToIcon(const CStatusMessage &statusMessage);
protected:
//! \copydoc CValueObject::marshallToDbus