mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Issue #77 Methods to convert icons to QVariant
Needed so propertyindex methods don't need to depend on CVariant.
This commit is contained in:
@@ -805,6 +805,17 @@ namespace BlackMisc
|
||||
//! Rotate by pixmap
|
||||
static QPixmap rotate(int rotateDegrees, const QPixmap &original);
|
||||
|
||||
// -------------------------------------------------------------
|
||||
// Convert enum to QVariant containing CIcon or QPixmap
|
||||
// (function definitions in icon.cpp)
|
||||
// -------------------------------------------------------------
|
||||
|
||||
//! Variant containing CIcon
|
||||
static QVariant toVariant(IconIndex icon);
|
||||
|
||||
//! Variant containing QPixmap
|
||||
static QVariant toVariantPixmap(IconIndex icon);
|
||||
|
||||
private:
|
||||
//! File cache for the loaded files
|
||||
static QMap<QString, QPixmap> &getResourceFileCache();
|
||||
|
||||
Reference in New Issue
Block a user