aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/unitymenumodel.h
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-14 17:29:10 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-14 17:29:10 +0200
commit1e9cf635d3074b82759b0edab44ba4549af5085e (patch)
tree3757e229e816cf88fbe524c5471e27edef8ddb4d /libqmenumodel/src/unitymenumodel.h
parent449ac3d20ef7aa4d63f258eeb2a160a5f55cfa9c (diff)
downloadqmenumodel-1e9cf635d3074b82759b0edab44ba4549af5085e.tar.gz
qmenumodel-1e9cf635d3074b82759b0edab44ba4549af5085e.tar.bz2
qmenumodel-1e9cf635d3074b82759b0edab44ba4549af5085e.zip
UnityMenuModel add support for activating and changing state with a variant string parameter
Diffstat (limited to 'libqmenumodel/src/unitymenumodel.h')
-rw-r--r--libqmenumodel/src/unitymenumodel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libqmenumodel/src/unitymenumodel.h b/libqmenumodel/src/unitymenumodel.h
index 8816d22..826d5b2 100644
--- a/libqmenumodel/src/unitymenumodel.h
+++ b/libqmenumodel/src/unitymenumodel.h
@@ -63,7 +63,9 @@ public:
Q_INVOKABLE QVariant get(int row, const QByteArray &role);
Q_INVOKABLE void activate(int index, const QVariant& parameter = QVariant());
+ Q_INVOKABLE void activateByVariantString(int index, const QString& parameter = QString());
Q_INVOKABLE void changeState(int index, const QVariant& parameter);
+ Q_INVOKABLE void changeStateByVariantString(int index, const QString& parameter = QString());
void registerAction(UnityMenuAction* action);
void unregisterAction(UnityMenuAction* action);