aboutsummaryrefslogtreecommitdiff
path: root/libqmenumodel/src/qstateaction.h
diff options
context:
space:
mode:
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-18 11:55:14 +0200
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2016-10-18 11:55:14 +0200
commit06687a7f140678f26d9394b4f0b5a4a41aaab63c (patch)
tree1130b874f9ac1a010688055923b4e738bd863658 /libqmenumodel/src/qstateaction.h
parent1adf4a6c1c9a978d1853612bf994f622599ea29a (diff)
downloadqmenumodel-06687a7f140678f26d9394b4f0b5a4a41aaab63c.tar.gz
qmenumodel-06687a7f140678f26d9394b4f0b5a4a41aaab63c.tar.bz2
qmenumodel-06687a7f140678f26d9394b4f0b5a4a41aaab63c.zip
QStateAction: add ability to activate or change state by variant string
Diffstat (limited to 'libqmenumodel/src/qstateaction.h')
-rw-r--r--libqmenumodel/src/qstateaction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libqmenumodel/src/qstateaction.h b/libqmenumodel/src/qstateaction.h
index 0fc68c2..4d05a7a 100644
--- a/libqmenumodel/src/qstateaction.h
+++ b/libqmenumodel/src/qstateaction.h
@@ -36,7 +36,9 @@ public:
bool isValid() const;
Q_INVOKABLE void activate(const QVariant &parameter = QVariant());
+ Q_INVOKABLE void activateByVariantString(const QString &parameter = QString());
Q_INVOKABLE void updateState(const QVariant &parameter);
+ Q_INVOKABLE void updateStateByVariantString(const QString &parameter);
Q_SIGNALS:
void stateChanged(QVariant state);