forked from qt-creator/qt-creator
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>
This commit is contained in:
committed by
Henning Gründl
parent
94bd14eb46
commit
560b77d64b
@@ -8,7 +8,7 @@ import HelperWidgets 2.0 as HelperWidgets
|
|||||||
|
|
||||||
PopupDialog {
|
PopupDialog {
|
||||||
id: root
|
id: root
|
||||||
property alias backend: form.backend
|
property alias backend: form.backend
|
||||||
|
|
||||||
titleBar: Row {
|
titleBar: Row {
|
||||||
spacing: 30 // TODO
|
spacing: 30 // TODO
|
||||||
@@ -36,18 +36,16 @@ PopupDialog {
|
|||||||
property int currentTypeIndex: backend.signal.id.currentIndex ?? 0
|
property int currentTypeIndex: backend.signal.id.currentIndex ?? 0
|
||||||
onCurrentTypeIndexChanged: target.currentIndex = target.currentTypeIndex
|
onCurrentTypeIndexChanged: target.currentIndex = target.currentTypeIndex
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ConnectionsDialogForm {
|
ConnectionsDialogForm {
|
||||||
id: form
|
id: form
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.backend
|
target: root.backend
|
||||||
onPopupTargetRemoved: {
|
function onPopupTargetRemoved() {
|
||||||
root.close()
|
root.close()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user