mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-02 07:05:38 +08:00
refs #304, centralized icons
* icons which can be rotated * provide metadata * integrated in CValueObjects * added SVG support
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#define BLACKMISC_CALLSIGN_H
|
||||
|
||||
#include "valueobject.h"
|
||||
#include "icon.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
@@ -40,10 +41,7 @@ namespace BlackMisc
|
||||
virtual QVariant toQVariant() const override { return QVariant::fromValue(*this); }
|
||||
|
||||
//! \copydoc CValueObject::toIcon()
|
||||
virtual const QPixmap &toIcon() const override
|
||||
{
|
||||
return CCallsign::convertToIcon(*this);
|
||||
}
|
||||
virtual BlackMisc::CIcon toIcon() const override { return CCallsign::convertToIcon(*this); }
|
||||
|
||||
//! Is empty?
|
||||
bool isEmpty() const { return this->m_callsignAsSet.isEmpty(); }
|
||||
@@ -117,7 +115,7 @@ namespace BlackMisc
|
||||
static QString unifyCallsign(const QString &callsign);
|
||||
|
||||
//! representing icon
|
||||
static const QPixmap &convertToIcon(const CCallsign &callsign);
|
||||
static const CIcon &convertToIcon(const CCallsign &callsign);
|
||||
|
||||
private:
|
||||
BLACK_ENABLE_TUPLE_CONVERSION(CCallsign)
|
||||
|
||||
Reference in New Issue
Block a user