projects
/
chessclock
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cd9e342
)
Asks confirmation upon quitting the game
author
Heli Hyvättinen
<heli.hyvattinen@kymp.net>
Tue, 23 Aug 2011 19:06:14 +0000
(22:06 +0300)
committer
Heli Hyvättinen
<heli.hyvattinen@kymp.net>
Tue, 23 Aug 2011 19:06:14 +0000
(22:06 +0300)
qml/ClocksPage.qml
patch
|
blob
|
history
diff --git
a/qml/ClocksPage.qml
b/qml/ClocksPage.qml
index
0c05d5b
..
f3664fa
100644
(file)
--- a/
qml/ClocksPage.qml
+++ b/
qml/ClocksPage.qml
@@
-51,7
+51,14
@@
Page
tools: ToolBarLayout
{
- ToolIcon { iconId: "toolbar-back"; onClicked: pageStack.pop() }
+ ToolIcon
+ {
+ iconId: "toolbar-back"
+ onClicked:
+ {
+ confirmationDialog.open()
+ }
+ }
ToolIcon
{
@@
-74,5
+81,15
@@
Page
}
+ QueryDialog
+ {
+ id: confirmationDialog
+ titleText: "Quit?"
+ message: "Are you sure you want to quit the game?"
+ acceptButtonText: "Quit"
+ rejectButtonText: "Continue play"
+
+ onAccepted: pageStack.pop()
+ }
}