QmlDesigner: Close dialog when view loses focus

Change-Id: Ib48229615ee9b2ccef1a8be98086a93851dae6af
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Henning Gruendl
2023-09-18 11:57:22 +02:00
committed by Henning Gründl
parent f25ce01ead
commit 44699727ad
3 changed files with 15 additions and 12 deletions

View File

@@ -15,10 +15,11 @@ ListView {
property bool adsFocus: false property bool adsFocus: false
onAdsFocusChanged: { // Temporarily remove due to dockwidget focus issue
if (!root.adsFocus) //onAdsFocusChanged: {
dialog.close() // if (!root.adsFocus)
} // dialog.close()
//}
clip: true clip: true
interactive: true interactive: true

View File

@@ -15,10 +15,11 @@ ListView {
property bool adsFocus: false property bool adsFocus: false
onAdsFocusChanged: { // Temporarily remove due to dockwidget focus issue
if (!root.adsFocus) //onAdsFocusChanged: {
dialog.close() // if (!root.adsFocus)
} // dialog.close()
//}
clip: true clip: true
interactive: true interactive: true

View File

@@ -15,10 +15,11 @@ ListView {
property bool adsFocus: false property bool adsFocus: false
onAdsFocusChanged: { // Temporarily remove due to dockwidget focus issue
if (!root.adsFocus) //onAdsFocusChanged: {
dialog.close() // if (!root.adsFocus)
} // dialog.close()
//}
clip: true clip: true
interactive: true interactive: true