summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr/mobile/TitleBar.qml
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2009-08-31 05:34:49 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2009-08-31 05:34:49 (GMT)
commitf13fbc5d61a4cd7e00220926ed0b382f8a86ba75 (patch)
tree4e4dd5043ce93621ad1939b8a2db6db08c2d829a /demos/declarative/flickr/mobile/TitleBar.qml
parentbffc072ae6177dcebc3bfa24c747a88b4eb09d74 (diff)
downloadQt-f13fbc5d61a4cd7e00220926ed0b382f8a86ba75.zip
Qt-f13fbc5d61a4cd7e00220926ed0b382f8a86ba75.tar.gz
Qt-f13fbc5d61a4cd7e00220926ed0b382f8a86ba75.tar.bz2
Fix flickr-mobile toolbar
Diffstat (limited to 'demos/declarative/flickr/mobile/TitleBar.qml')
-rw-r--r--demos/declarative/flickr/mobile/TitleBar.qml52
1 files changed, 27 insertions, 25 deletions
diff --git a/demos/declarative/flickr/mobile/TitleBar.qml b/demos/declarative/flickr/mobile/TitleBar.qml
index 49d670f..b74e414 100644
--- a/demos/declarative/flickr/mobile/TitleBar.qml
+++ b/demos/declarative/flickr/mobile/TitleBar.qml
@@ -2,9 +2,9 @@ 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 {
@@ -20,12 +20,13 @@ Item {
Text {
id: CategoryText
- anchors.left: parent.left; anchors.right: TagButton.left
- anchors.leftMargin: 10; anchors.rightMargin: 10
- anchors.verticalCenter: parent.verticalCenter
+ anchors {
+ left: parent.left; right: TagButton.left; leftMargin: 10; rightMargin: 10
+ verticalCenter: parent.verticalCenter
+ }
elide: "ElideLeft"
text: (RssModel.tags=="" ? untaggedString : taggedString + RssModel.tags)
- font.bold: true; color: "white"; style: "Raised"; styleColor: "black"
+ font.bold: true; color: "White"; style: "Raised"; styleColor: "Black"
}
Button {
@@ -36,23 +37,27 @@ Item {
Item {
id: LineEdit
- anchors.left: TagButton.right; anchors.leftMargin: 5; y: 4
- anchors.right: parent.right; anchors.rightMargin: 5; height: parent.height - 9
+ y: 4; height: parent.height - 9
+ anchors { left: TagButton.right; leftMargin: 5; right: parent.right; rightMargin: 5 }
+
BorderImage { source: "images/lineedit.sci"; anchors.fill: parent }
TextInput {
id: Editor
- anchors.left: parent.left; anchors.right: parent.right
- anchors.leftMargin: 10; anchors.rightMargin: 10
- anchors.verticalCenter: parent.verticalCenter
+ anchors {
+ left: parent.left; right: parent.right; leftMargin: 10; rightMargin: 10
+ verticalCenter: parent.verticalCenter
+ }
cursorVisible: true; font.bold: true
- color: "#151515"; highlightColor: "green"
+ color: "#151515"; highlightColor: "Green"
}
+
KeyProxy {
id: Proxy
anchors.fill: parent
targets: [(ReturnKey), (Editor)]
}
+
Item {
id: ReturnKey
Keys.onReturnPressed: accept()
@@ -60,18 +65,15 @@ Item {
}
}
}
- states: [
- State {
- name: "Tags"
- PropertyChanges { target: Container; x: -TagButton.x + 5 }
- PropertyChanges { target: TagButton; text: "OK" }
- PropertyChanges { target: Proxy; focus: true }
- }
- ]
- transitions: [
- Transition {
- from: "*"; to: "*"
- NumberAnimation { properties: "x"; easing: "easeInOutQuad" }
- }
- ]
+
+ states: State {
+ name: "Tags"
+ PropertyChanges { target: Container; x: -TagButton.x + 5 }
+ PropertyChanges { target: TagButton; text: "OK" }
+ PropertyChanges { target: Proxy; focus: true }
+ }
+
+ transitions: Transition {
+ NumberAnimation { properties: "x"; easing: "easeInOutQuad" }
+ }
}