diff options
author | Thomas Hartmann <thomas.hartmann@qt.io> | 2020-04-22 18:20:57 +0200 |
---|---|---|
committer | Thomas Hartmann <thomas.hartmann@qt.io> | 2020-04-22 18:29:22 +0200 |
commit | b9140b96b8d5a5e27f9fb92c560147e68fa47437 (patch) | |
tree | 4e99a4a5c7560d9b32b7ba24244e0a6891f62bfa /examples | |
parent | 125672b91ddb3ef4a39b41fe1434114cb1cc1f9d (diff) |
Use EventListener
Change-Id: I928594bcf4308e8d1d51a9721729c6e9879593be
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/imports/FlowView/FlowWildcard.qml | 12 | ||||
-rw-r--r-- | examples/imports/FlowView/designer/FlowActionAreaSpecifics.qml | 12 |
2 files changed, 23 insertions, 1 deletions
diff --git a/examples/imports/FlowView/FlowWildcard.qml b/examples/imports/FlowView/FlowWildcard.qml index 9760c7e..c6300e4 100644 --- a/examples/imports/FlowView/FlowWildcard.qml +++ b/examples/imports/FlowView/FlowWildcard.qml @@ -57,4 +57,16 @@ QtObject { root.target.trigger() } + property EventListener eventListener: EventListener { + id: eventListener + onTriggered: root.trigger() + } + + property alias eventIds: eventListener.eventIds +} + +/*##^## +Designer { + D{i:0;formeditorZoom:0.8999999761581421} } +##^##*/ diff --git a/examples/imports/FlowView/designer/FlowActionAreaSpecifics.qml b/examples/imports/FlowView/designer/FlowActionAreaSpecifics.qml index 708c5f5..791d540 100644 --- a/examples/imports/FlowView/designer/FlowActionAreaSpecifics.qml +++ b/examples/imports/FlowView/designer/FlowActionAreaSpecifics.qml @@ -60,7 +60,7 @@ Column { anchors.right: parent.right caption: qsTr("FlowAction Parameters") SectionLayout { - rows: 1 + rows: 2 columns: 2 Label { @@ -73,6 +73,16 @@ Column { backendValue: backendValues.goBack } + Label { + text: qsTr("Event Ids") + tooltip: qsTr("") + } + LineEdit { + Layout.fillWidth: true + text: backendValues.goBack + backendValue: backendValues.eventIds + } + } } Section { |