summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorHarald Fernengel <harald.fernengel@nokia.com>2009-12-16 14:48:49 (GMT)
committerHarald Fernengel <harald.fernengel@nokia.com>2009-12-16 14:48:49 (GMT)
commit3dbe316e92204963765d74665d4f33f56d3c1730 (patch)
tree369fb2a627fdd3e5682f3dc86a81682486e134c5 /demos
parent7f9bfd5dae0aa55a9425908995ba9249b7921ad4 (diff)
downloadQt-3dbe316e92204963765d74665d4f33f56d3c1730.zip
Qt-3dbe316e92204963765d74665d4f33f56d3c1730.tar.gz
Qt-3dbe316e92204963765d74665d4f33f56d3c1730.tar.bz2
Add a quit button to the toolbar
Allows to run SameGame full-screen on the N900, and being able to quit without having to use xkill :)
Diffstat (limited to 'demos')
-rw-r--r--demos/declarative/samegame/samegame.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/declarative/samegame/samegame.qml b/demos/declarative/samegame/samegame.qml
index 72ea564..d40d644 100644
--- a/demos/declarative/samegame/samegame.qml
+++ b/demos/declarative/samegame/samegame.qml
@@ -67,6 +67,12 @@ Rectangle {
anchors.verticalCenter: parent.verticalCenter
}
+ Button {
+ id: btnB; text: "Quit"; onClicked: {Qt.quit();}
+ anchors.left: btnA.right; anchors.leftMargin: 3
+ anchors.verticalCenter: parent.verticalCenter
+ }
+
Text {
id: score
text: "Score: " + gameCanvas.score; font.bold: true