summaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorAlan Alpert <alan.alpert@nokia.com>2009-08-27 08:16:53 (GMT)
committerAlan Alpert <alan.alpert@nokia.com>2009-08-27 08:16:53 (GMT)
commitdd60bef7c93a09a92228574bade084d520e711f9 (patch)
treea680871007e6a800e45c76671e7a66bf208e9335 /demos
parent1975260b35906a3cc0ca25f25b553e4572238e05 (diff)
downloadQt-dd60bef7c93a09a92228574bade084d520e711f9.zip
Qt-dd60bef7c93a09a92228574bade084d520e711f9.tar.gz
Qt-dd60bef7c93a09a92228574bade084d520e711f9.tar.bz2
Flickr tweak for more generic components
Using TitleBar in twitter too, this slight change prevents a copy of the whole component.
Diffstat (limited to 'demos')
-rw-r--r--demos/declarative/flickr/mobile/TitleBar.qml7
1 files changed, 5 insertions, 2 deletions
diff --git a/demos/declarative/flickr/mobile/TitleBar.qml b/demos/declarative/flickr/mobile/TitleBar.qml
index 6d655a6..49d670f 100644
--- a/demos/declarative/flickr/mobile/TitleBar.qml
+++ b/demos/declarative/flickr/mobile/TitleBar.qml
@@ -3,6 +3,8 @@ import Qt 4.6
Item {
id: TitleBar
+ property string untaggedString: "Uploads from everyone"
+ property string taggedString: "Recent uploads tagged "
BorderImage { source: "images/titlebar2.sci"; width: parent.width; height: parent.height + 14; y: -7 }
Item {
@@ -22,13 +24,14 @@ Item {
anchors.leftMargin: 10; anchors.rightMargin: 10
anchors.verticalCenter: parent.verticalCenter
elide: "ElideLeft"
- text: (RssModel.tags=="" ? "Uploads from everyone" : "Recent Uploads tagged " + RssModel.tags)
+ text: (RssModel.tags=="" ? untaggedString : taggedString + RssModel.tags)
font.bold: true; color: "white"; style: "Raised"; styleColor: "black"
}
Button {
- id: TagButton; x: TitleBar.width - 50; y: 3; width: 45; height: 32; text: "..."
+ id: TagButton; x: TitleBar.width - 50; width: 45; height: 32; text: "..."
onClicked: if (TitleBar.state == "Tags") accept(); else TitleBar.state = "Tags"
+ anchors.verticalCenter: parent.verticalCenter
}
Item {