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/photoviewer/photoviewer.qml | |
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/photoviewer/photoviewer.qml')
-rw-r--r-- | demos/declarative/photoviewer/photoviewer.qml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/demos/declarative/photoviewer/photoviewer.qml b/demos/declarative/photoviewer/photoviewer.qml index 4ed3105..3072ea2 100644 --- a/demos/declarative/photoviewer/photoviewer.qml +++ b/demos/declarative/photoviewer/photoviewer.qml @@ -81,6 +81,11 @@ Rectangle { onClicked: mainWindow.editMode = !mainWindow.editMode anchors.horizontalCenter: parent.horizontalCenter } + Button { + id: quitButton; label: qsTr("Quit"); rotation: -2; + onClicked: Qt.quit() + anchors.horizontalCenter: parent.horizontalCenter + } } Rectangle { |