aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quickcontrols2/gallery/pages/DialogPage.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quickcontrols2/gallery/pages/DialogPage.qml')
-rw-r--r--examples/quickcontrols2/gallery/pages/DialogPage.qml2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/quickcontrols2/gallery/pages/DialogPage.qml b/examples/quickcontrols2/gallery/pages/DialogPage.qml
index 9d23e260..167fa186 100644
--- a/examples/quickcontrols2/gallery/pages/DialogPage.qml
+++ b/examples/quickcontrols2/gallery/pages/DialogPage.qml
@@ -55,6 +55,8 @@ import QtQuick.Controls 2.12
ScrollablePage {
id: page
+ readonly property string control : "dialog"
+
readonly property int buttonWidth: Math.max(button.implicitWidth, Math.min(button.implicitWidth * 2, page.availableWidth / 3))
Column {