diff options
author | Henning Gruendl <henning.gruendl@qt.io> | 2023-09-19 11:49:27 +0200 |
---|---|---|
committer | Henning Gründl <henning.gruendl@qt.io> | 2023-09-19 10:29:36 +0000 |
commit | f95253dda0834cfc77c796c2f480036e465efb77 (patch) | |
tree | e918db5650ef19746b8bd78a270cde79b367d381 | |
parent | f3a887dac6e810bb6ac8e4144e695efd829c3f3a (diff) |
QmlDesigner: Fix Connections in ConnectionsEditor
Fix Implicitly defined onFoo properties in Connections are deprecated.
Change-Id: I0f2460dd4b69c070f4982ca0ec13b19cfda0342b
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io>
(cherry picked from commit b7e319a6bf9f30cabe3b0aecea4bebeaa334b4e4)
-rw-r--r-- | share/qtcreator/qmldesigner/connectionseditor/ConnectionsDialog.qml | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/share/qtcreator/qmldesigner/connectionseditor/ConnectionsDialog.qml b/share/qtcreator/qmldesigner/connectionseditor/ConnectionsDialog.qml index 7405f82a47..131ae6cee9 100644 --- a/share/qtcreator/qmldesigner/connectionseditor/ConnectionsDialog.qml +++ b/share/qtcreator/qmldesigner/connectionseditor/ConnectionsDialog.qml @@ -8,7 +8,7 @@ import HelperWidgets 2.0 as HelperWidgets PopupDialog { id: root - property alias backend: form.backend + property alias backend: form.backend titleBar: Row { spacing: 30 // TODO @@ -36,18 +36,16 @@ PopupDialog { property int currentTypeIndex: backend.signal.id.currentIndex ?? 0 onCurrentTypeIndexChanged: target.currentIndex = target.currentTypeIndex } - } ConnectionsDialogForm { - id: form - - Connections { - target: root.backend - onPopupTargetRemoved: { - root.close() - } - } - } + id: form + Connections { + target: root.backend + function onPopupTargetRemoved() { + root.close() + } + } + } } |