From 560b77d64b2fde5d30e8f0f468228411a37c63cb Mon Sep 17 00:00:00 2001 From: Henning Gruendl Date: Tue, 19 Sep 2023 11:49:27 +0200 Subject: [PATCH] QmlDesigner: Fix Connections in ConnectionsEditor Fix Implicitly defined onFoo properties in Connections are deprecated. Change-Id: I0f2460dd4b69c070f4982ca0ec13b19cfda0342b Reviewed-by: Thomas Hartmann Reviewed-by: Qt CI Patch Build Bot --- .../connectionseditor/ConnectionsDialog.qml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/share/qtcreator/qmldesigner/connectionseditor/ConnectionsDialog.qml b/share/qtcreator/qmldesigner/connectionseditor/ConnectionsDialog.qml index 7405f82a47b..131ae6cee99 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 + id: form - Connections { - target: root.backend - onPopupTargetRemoved: { - root.close() - } - } + Connections { + target: root.backend + function onPopupTargetRemoved() { + root.close() + } + } } - }