mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:07:04 +08:00
refs #304, centralized icons
* icons which can be rotated * provide metadata * integrated in CValueObjects * added SVG support
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user