aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/universal/Dialog.qml
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2016-10-22 20:46:33 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2016-10-26 09:17:17 +0000
commitfa71ef5a2ccfa4666db9338c4ba8f34d19f2faf1 (patch)
tree69f0e465ea5f5baf38a22631fe8d178fde8a795b /src/imports/controls/universal/Dialog.qml
parent791d521a3008695f834d5aa8c9bb61f9075b37a8 (diff)
QQuickDialog: simplify the button box handling
Just fill in the footer with a button box by default from the styles. This makes the next step easier, to provide also a default title bar in the header. Task-number: QTBUG-56711 Change-Id: I621a61f29f9ba2fe4b7e907d81da5988133a98c8 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'src/imports/controls/universal/Dialog.qml')
-rw-r--r--src/imports/controls/universal/Dialog.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/universal/Dialog.qml b/src/imports/controls/universal/Dialog.qml
index 0f00b760..bff289d9 100644
--- a/src/imports/controls/universal/Dialog.qml
+++ b/src/imports/controls/universal/Dialog.qml
@@ -63,7 +63,7 @@ T.Dialog {
border.width: 1 // FlyoutBorderThemeThickness
}
- buttonBox: DialogButtonBox {
- position: DialogButtonBox.Footer
+ footer: DialogButtonBox {
+ visible: count > 0
}
}