diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-08-26 03:31:27 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-08-26 04:48:04 (GMT) |
commit | 2af41f34eca0effced19b59d4c3327e3e4b627cb (patch) | |
tree | 593e0ef0f985638a300a68f591eda76a75cf6234 /demos/declarative/snake | |
parent | 58a76965e20c4c66ab2dc9cf73aa72b1cfddfbeb (diff) | |
download | Qt-2af41f34eca0effced19b59d4c3327e3e4b627cb.zip Qt-2af41f34eca0effced19b59d4c3327e3e4b627cb.tar.gz Qt-2af41f34eca0effced19b59d4c3327e3e4b627cb.tar.bz2 |
Add quit buttons to declarative demos
Task-number: QTBUG-13048
Reviewed-by: Martin Jones
Diffstat (limited to 'demos/declarative/snake')
-rw-r--r-- | demos/declarative/snake/snake.qml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/demos/declarative/snake/snake.qml b/demos/declarative/snake/snake.qml index ed3bac9..12ad71c 100644 --- a/demos/declarative/snake/snake.qml +++ b/demos/declarative/snake/snake.qml @@ -194,6 +194,12 @@ Rectangle { anchors.verticalCenter: parent.verticalCenter } + Content.Button { + text: "Quit" + anchors { left: btnA.right; leftMargin: 3; verticalCenter: parent.verticalCenter } + onClicked: Qt.quit(); + } + Text { color: activePalette.text text: "Score: " + score; font.bold: true |