aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qmldesigner/components/stateseditor
diff options
context:
space:
mode:
authorAleksei German <aleksei.german@qt.io>2019-11-12 17:06:06 +0100
committerAleksei German <aleksei.german@qt.io>2019-11-13 10:24:54 +0000
commit5bb0298f693e82ec829ac6777d68230656d08a69 (patch)
tree84ab3295e5b84fa883ca01e3db6c6bf75b66826a /src/plugins/qmldesigner/components/stateseditor
parentd9981135c1168002f60049a50ed5d6807aca57e3 (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.cpp5
-rw-r--r--src/plugins/qmldesigner/components/stateseditor/stateseditormodel.h1
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();