IconAction
Qualified name: mv::gui::IconAction
-
class IconAction : public mv::gui::TriggerAction
Icon action class (WIP)
For icon storage
Note: This action is developed for internal use only
- Author
Thomas Kroes
Public Functions
-
Q_INVOKABLE IconAction(QObject *parent, const QString &title)
Constructor.
- Parameters:
parent – Pointer to parent object
title – Title of the action
-
void setIconFromImage(const QImage &image)
Set the current icon from
image.- Parameters:
image – Image to convert to icon
-
virtual void fromVariantMap(const QVariantMap &variantMap) override
Load image action from variant.
- Parameters:
Variant – representation of the image action
-
virtual QVariantMap toVariantMap() const override
Save image action to variant.
- Returns:
Variant representation of the image action