diff options
author | Joona Petrell <joona.t.petrell@nokia.com> | 2010-09-09 05:43:39 (GMT) |
---|---|---|
committer | Joona Petrell <joona.t.petrell@nokia.com> | 2010-09-09 05:45:05 (GMT) |
commit | 525593a49472ebe412ee0c7b5a53547f372ad05e (patch) | |
tree | f2250c4b0f1dabeaac243885ced139c62dc65607 /demos/declarative | |
parent | 969c3c13217bc5eb98c77f1674269bed1cc102e2 (diff) | |
download | Qt-525593a49472ebe412ee0c7b5a53547f372ad05e.zip Qt-525593a49472ebe412ee0c7b5a53547f372ad05e.tar.gz Qt-525593a49472ebe412ee0c7b5a53547f372ad05e.tar.bz2 |
Re-add quit button to declarative Twitter demo
Task-number:
Reviewed-by: Bea Lam
Diffstat (limited to 'demos/declarative')
-rw-r--r-- | demos/declarative/twitter/TwitterCore/TitleBar.qml | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/demos/declarative/twitter/TwitterCore/TitleBar.qml b/demos/declarative/twitter/TwitterCore/TitleBar.qml index 145c189..70de81d 100644 --- a/demos/declarative/twitter/TwitterCore/TitleBar.qml +++ b/demos/declarative/twitter/TwitterCore/TitleBar.qml @@ -94,10 +94,21 @@ Item { } } + Image { + id: quitButton + x: 5 + anchors.verticalCenter: parent.verticalCenter + source: "images/quit.png" + MouseArea { + anchors.fill: parent + onClicked: Qt.quit() + } + } + Text { id: categoryText anchors { - left: imageBox.right; right: parent.right; leftMargin: 10; rightMargin: 10 + left: quitButton.right; right: parent.right; leftMargin: 10; rightMargin: 10 verticalCenter: parent.verticalCenter } elide: Text.ElideLeft |