mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +08:00
refs #304, centralized icons
* icons which can be rotated * provide metadata * integrated in CValueObjects * added SVG support
This commit is contained in:
@@ -30,6 +30,7 @@ namespace BlackMisc
|
||||
{
|
||||
// forward declaration
|
||||
class CIndexVariantMap;
|
||||
class CIcon;
|
||||
|
||||
namespace PhysicalQuantities
|
||||
{
|
||||
@@ -187,7 +188,10 @@ namespace BlackMisc
|
||||
virtual void fromJson(const QJsonObject &json) { Q_UNUSED(json); }
|
||||
|
||||
//! As icon, not implement by all classes
|
||||
virtual const QPixmap &toIcon() const { static const QPixmap p; return p; }
|
||||
virtual CIcon toIcon() const;
|
||||
|
||||
//! As pixmap, required for most GUI views
|
||||
virtual QPixmap toPixmap() const;
|
||||
|
||||
/*!
|
||||
* \brief Set property by index
|
||||
|
||||
Reference in New Issue
Block a user