diff options
author | Oliver Eftevaag <[email protected]> | 2024-06-20 18:25:54 +0200 |
---|---|---|
committer | Oliver Eftevaag <[email protected]> | 2024-06-21 14:28:04 +0200 |
commit | bae9699b203954c6abc1d62b6e070b40067d4f33 (patch) | |
tree | a1e31b8268ffaf93db2f21f0ff2d08da205544de /src/quickcontrols/basic/Dialog.qml | |
parent | a6d0dcdb9dc5162659f84abceaf2e30775930e47 (diff) |
Dialog: Hide title if inside a popup window
Popup windows with the Qt::Dialog flag, will display the title in its
window decoration.
Because of this, it's redundant to also display the title inside the
dialog.
Pick-to: 6.8
Change-Id: Ib052a950216248c889983361063c8e46f4cffdfa
Reviewed-by: Mitch Curtis <[email protected]>
Diffstat (limited to 'src/quickcontrols/basic/Dialog.qml')
-rw-r--r-- | src/quickcontrols/basic/Dialog.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quickcontrols/basic/Dialog.qml b/src/quickcontrols/basic/Dialog.qml index c4c59b27fb..41cf18751d 100644 --- a/src/quickcontrols/basic/Dialog.qml +++ b/src/quickcontrols/basic/Dialog.qml @@ -26,7 +26,7 @@ T.Dialog { header: Label { text: control.title - visible: control.title + visible: parent?.parent === Overlay.overlay && control.title elide: Label.ElideRight font.bold: true padding: 12 |