aboutsummaryrefslogtreecommitdiffstats
path: root/src/imports/controls/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/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/Dialog.qml')
-rw-r--r--src/imports/controls/Dialog.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/imports/controls/Dialog.qml b/src/imports/controls/Dialog.qml
index ce6df0f6..3322a6ea 100644
--- a/src/imports/controls/Dialog.qml
+++ b/src/imports/controls/Dialog.qml
@@ -59,7 +59,7 @@ T.Dialog {
border.color: Default.frameDarkColor
}
- buttonBox: DialogButtonBox {
- position: DialogButtonBox.Footer
+ footer: DialogButtonBox {
+ visible: count > 0
}
}