diff options
author | Aleksei German <aleksei.german@qt.io> | 2019-11-12 17:06:06 +0100 |
---|---|---|
committer | Aleksei German <aleksei.german@qt.io> | 2019-11-13 10:24:54 +0000 |
commit | 5bb0298f693e82ec829ac6777d68230656d08a69 (patch) | |
tree | 84ab3295e5b84fa883ca01e3db6c6bf75b66826a /src/plugins/qmldesigner/components/stateseditor | |
parent | d9981135c1168002f60049a50ed5d6807aca57e3 (diff) |
QmlDesigner Add Binding Editor support to States
Change-Id: I3ccce5e2bfbbfa0dfba1e438d527fa18348005b5
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'src/plugins/qmldesigner/components/stateseditor')
-rw-r--r-- | src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp | 5 | ||||
-rw-r--r-- | src/plugins/qmldesigner/components/stateseditor/stateseditormodel.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp index 5676cc2ca40..d5e21ebe945 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.cpp @@ -216,4 +216,9 @@ QStringList StatesEditorModel::autoComplete(const QString &text, int pos, bool e return QStringList(); } +QVariant StatesEditorModel::stateModelNode() +{ + return QVariant::fromValue(m_statesEditorView->currentStateNode()); +} + } // namespace QmlDesigner diff --git a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.h b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.h index 2ea806c9bad..40cad6efefc 100644 --- a/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.h +++ b/src/plugins/qmldesigner/components/stateseditor/stateseditormodel.h @@ -61,6 +61,7 @@ public: Q_INVOKABLE void setWhenCondition(int internalNodeId, const QString &condition); Q_INVOKABLE void resetWhenCondition(int internalNodeId); Q_INVOKABLE QStringList autoComplete(const QString &text, int pos, bool explicitComplete); + Q_INVOKABLE QVariant stateModelNode(); void reset(); |