Commit 01b85cc9 authored by Shawn Rutledge's avatar Shawn Rutledge
Browse files

CustomDialogs example: add Apply, Reset and Restore Defaults buttons


A custom dialog might have a use for these.

Change-Id: Ibef05dd63d65476e1225477d2e7ed9d24fbba9ed
Reviewed-by: default avatarLiang Qi <liang.qi@theqtcompany.com>
Showing with 18 additions and 0 deletions
...@@ -262,6 +262,24 @@ Item { ...@@ -262,6 +262,24 @@ Item {
onCheckedChanged: parent.updateButtons(button, checked) onCheckedChanged: parent.updateButtons(button, checked)
} }
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 { CheckBox {
text: "OK" text: "OK"
checked: true checked: true
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment