QmlDesigner: Close dialog when view loses focus

Change-Id: I4666953ff862886fbb02fb3982d6856a223fe969
Reviewed-by: Brook Cronin <brook.cronin@qt.io>
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:
Henning Gruendl
2023-09-15 21:05:02 +02:00
committed by Henning Gründl
parent a496ac5d02
commit f25ce01ead
3 changed files with 15 additions and 0 deletions

View File

@@ -15,6 +15,11 @@ ListView {
property bool adsFocus: false
onAdsFocusChanged: {
if (!root.adsFocus)
dialog.close()
}
clip: true
interactive: true
highlightMoveDuration: 0

View File

@@ -15,6 +15,11 @@ ListView {
property bool adsFocus: false
onAdsFocusChanged: {
if (!root.adsFocus)
dialog.close()
}
clip: true
interactive: true
highlightMoveDuration: 0

View File

@@ -15,6 +15,11 @@ ListView {
property bool adsFocus: false
onAdsFocusChanged: {
if (!root.adsFocus)
dialog.close()
}
clip: true
interactive: true
highlightMoveDuration: 0