summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2014-10-22 11:35:36 +0200
committerShawn Rutledge <shawn.rutledge@digia.com>2014-10-22 12:25:50 +0200
commit01b85cc9a8ee586cf8fb3bb4d22cc4cf7de32899 (patch)
treec7a88d11dc3f67b20bf71357b25fc58c03f43aca /examples
parent12edeb58d6017570db2e2b1c25b2a3a1b5847967 (diff)
downloadqtquickcontrols-01b85cc9a8ee586cf8fb3bb4d22cc4cf7de32899.tar.gz
CustomDialogs example: add Apply, Reset and Restore Defaults buttons
A custom dialog might have a use for these. Change-Id: Ibef05dd63d65476e1225477d2e7ed9d24fbba9ed Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/quick/dialogs/systemdialogs/CustomDialogs.qml18
1 files changed, 18 insertions, 0 deletions
diff --git a/examples/quick/dialogs/systemdialogs/CustomDialogs.qml b/examples/quick/dialogs/systemdialogs/CustomDialogs.qml
index d1143775..43515536 100644
--- a/examples/quick/dialogs/systemdialogs/CustomDialogs.qml
+++ b/examples/quick/dialogs/systemdialogs/CustomDialogs.qml
@@ -263,6 +263,24 @@ Item {
}
CheckBox {
+ text: "Apply"
+ property int button: StandardButton.Apply
+ onCheckedChanged: parent.updateButtons(button, checked)
+ }
+
+ CheckBox {
+ text: "Reset"
+ property int button: StandardButton.Reset
+ onCheckedChanged: parent.updateButtons(button, checked)
+ }
+
+ CheckBox {
+ text: "Restore Defaults"
+ property int button: StandardButton.RestoreDefaults
+ onCheckedChanged: parent.updateButtons(button, checked)
+ }
+
+ CheckBox {
text: "OK"
checked: true
property int button: StandardButton.Ok