diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-04-27 04:49:46 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-04-27 04:49:46 (GMT) |
commit | f208442b257015888d4903e6202772a7836d70a7 (patch) | |
tree | c52b66ec92557fc20e15391f8f038585171b39fb /demos/declarative/flickr/mobile/TitleBar.qml | |
parent | c7da65069b178d3edf82e05c4b954ac1270cc700 (diff) | |
download | Qt-f208442b257015888d4903e6202772a7836d70a7.zip Qt-f208442b257015888d4903e6202772a7836d70a7.tar.gz Qt-f208442b257015888d4903e6202772a7836d70a7.tar.bz2 |
make quitable
Diffstat (limited to 'demos/declarative/flickr/mobile/TitleBar.qml')
-rw-r--r-- | demos/declarative/flickr/mobile/TitleBar.qml | 13 |
1 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 |