From 3dbe316e92204963765d74665d4f33f56d3c1730 Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Wed, 16 Dec 2009 15:48:49 +0100 Subject: 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 :) --- demos/declarative/samegame/samegame.qml | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v0.12