summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-04-27 04:49:46 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-04-27 04:49:46 (GMT)
commitf208442b257015888d4903e6202772a7836d70a7 (patch)
treec52b66ec92557fc20e15391f8f038585171b39fb /demos/declarative/flickr
parentc7da65069b178d3edf82e05c4b954ac1270cc700 (diff)
downloadQt-f208442b257015888d4903e6202772a7836d70a7.zip
Qt-f208442b257015888d4903e6202772a7836d70a7.tar.gz
Qt-f208442b257015888d4903e6202772a7836d70a7.tar.bz2
make quitable
Diffstat (limited to 'demos/declarative/flickr')
-rw-r--r--demos/declarative/flickr/mobile/TitleBar.qml13
-rw-r--r--demos/declarative/flickr/mobile/images/quit.pngbin0 -> 2369 bytes
2 files changed, 12 insertions, 1 deletions
diff --git a/demos/declarative/flickr/mobile/TitleBar.qml b/demos/declarative/flickr/mobile/TitleBar.qml
index 71d9385..bb57429 100644
--- a/demos/declarative/flickr/mobile/TitleBar.qml
+++ b/demos/declarative/flickr/mobile/TitleBar.qml
@@ -18,10 +18,21 @@ Item {
rssModel.tags = editor.text
}
+ Image {
+ id: quitButton
+ anchors.left: parent.left//; anchors.leftMargin: 0
+ anchors.verticalCenter: parent.verticalCenter
+ source: "images/quit.png"
+ MouseArea {
+ anchors.fill: parent
+ onClicked: Qt.quit()
+ }
+ }
+
Text {
id: categoryText
anchors {
- left: parent.left; right: tagButton.left; leftMargin: 10; rightMargin: 10
+ left: quitButton.right; right: tagButton.left; leftMargin: 10; rightMargin: 10
verticalCenter: parent.verticalCenter
}
elide: Text.ElideLeft
diff --git a/demos/declarative/flickr/mobile/images/quit.png b/demos/declarative/flickr/mobile/images/quit.png
new file mode 100644
index 0000000..5bda1b6
--- /dev/null
+++ b/demos/declarative/flickr/mobile/images/quit.png
Binary files differ