diff --git a/share/qtcreator/qmldesigner/connectionseditor/BindingsListView.qml b/share/qtcreator/qmldesigner/connectionseditor/BindingsListView.qml index 61433bc3ef5..f5aa2cd1652 100644 --- a/share/qtcreator/qmldesigner/connectionseditor/BindingsListView.qml +++ b/share/qtcreator/qmldesigner/connectionseditor/BindingsListView.qml @@ -15,6 +15,11 @@ ListView { property bool adsFocus: false + onAdsFocusChanged: { + if (!root.adsFocus) + dialog.close() + } + clip: true interactive: true highlightMoveDuration: 0 diff --git a/share/qtcreator/qmldesigner/connectionseditor/ConnectionsListView.qml b/share/qtcreator/qmldesigner/connectionseditor/ConnectionsListView.qml index 3d5e1edd5c0..f38bdf9abfe 100644 --- a/share/qtcreator/qmldesigner/connectionseditor/ConnectionsListView.qml +++ b/share/qtcreator/qmldesigner/connectionseditor/ConnectionsListView.qml @@ -15,6 +15,11 @@ ListView { property bool adsFocus: false + onAdsFocusChanged: { + if (!root.adsFocus) + dialog.close() + } + clip: true interactive: true highlightMoveDuration: 0 diff --git a/share/qtcreator/qmldesigner/connectionseditor/PropertiesListView.qml b/share/qtcreator/qmldesigner/connectionseditor/PropertiesListView.qml index c731e5ac819..b9a45c76db5 100644 --- a/share/qtcreator/qmldesigner/connectionseditor/PropertiesListView.qml +++ b/share/qtcreator/qmldesigner/connectionseditor/PropertiesListView.qml @@ -15,6 +15,11 @@ ListView { property bool adsFocus: false + onAdsFocusChanged: { + if (!root.adsFocus) + dialog.close() + } + clip: true interactive: true highlightMoveDuration: 0