diff options
-rw-r--r-- | demos/declarative/samegame/samegame.qml | 6 |
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 |