diff options
author | Yann Bodson <yann.bodson@nokia.com> | 2009-09-01 02:15:25 (GMT) |
---|---|---|
committer | Yann Bodson <yann.bodson@nokia.com> | 2009-09-01 02:15:25 (GMT) |
commit | b6fa0efb754723fd3fe33254e322ad5d7bf1f19f (patch) | |
tree | 8243b156a568833eb4c8eb265e511deb7954b9d5 /demos/declarative/flickr/mobile | |
parent | 514692aac05fa5949dcc049734be122daad6b3dc (diff) | |
download | Qt-b6fa0efb754723fd3fe33254e322ad5d7bf1f19f.zip Qt-b6fa0efb754723fd3fe33254e322ad5d7bf1f19f.tar.gz Qt-b6fa0efb754723fd3fe33254e322ad5d7bf1f19f.tar.bz2 |
Fix bugs in flick-mobile demo.
Diffstat (limited to 'demos/declarative/flickr/mobile')
-rw-r--r-- | demos/declarative/flickr/mobile/GridDelegate.qml | 9 | ||||
-rw-r--r-- | demos/declarative/flickr/mobile/TitleBar.qml | 3 | ||||
-rw-r--r-- | demos/declarative/flickr/mobile/ToolBar.qml | 10 |
3 files changed, 11 insertions, 11 deletions
diff --git a/demos/declarative/flickr/mobile/GridDelegate.qml b/demos/declarative/flickr/mobile/GridDelegate.qml index 5ab4d3a..91e7c8d 100644 --- a/demos/declarative/flickr/mobile/GridDelegate.qml +++ b/demos/declarative/flickr/mobile/GridDelegate.qml @@ -48,23 +48,20 @@ name: "Details"; extend: "Show" ParentChange { target: Wrapper; parent: ImageDetails.frontContainer } PropertyChanges { target: Wrapper; x: 20; y: 60 } - PropertyChanges { target: ImageDetails; x: 0 } - PropertyChanges { target: Views; x: -parent.width } - PropertyChanges { target: ToolBar.button2; text: "Back" } - PropertyChanges { target: ToolBar; onButton2Clicked: { } } + PropertyChanges { target: Background; state: "DetailedView" } } ] transitions: [ Transition { from: "Show"; to: "Details" ParentAction { } - NumberAnimation { properties: "x,y,opacity,angle"; duration: 500; easing: "easeInOutQuad" } + NumberAnimation { properties: "x,y"; duration: 500; easing: "easeInOutQuad" } }, Transition { from: "Details"; to: "Show" SequentialAnimation { ParentAction { } - NumberAnimation { properties: "x,y,opacity,angle"; duration: 500; easing: "easeInOutQuad" } + NumberAnimation { properties: "x,y"; duration: 500; easing: "easeInOutQuad" } PropertyAction { target: Wrapper; properties: "z" } } } diff --git a/demos/declarative/flickr/mobile/TitleBar.qml b/demos/declarative/flickr/mobile/TitleBar.qml index b74e414..9d40323 100644 --- a/demos/declarative/flickr/mobile/TitleBar.qml +++ b/demos/declarative/flickr/mobile/TitleBar.qml @@ -13,8 +13,9 @@ Item { Script { function accept() { - RssModel.tags = Editor.text TitleBar.state = "" + Background.state = "" + RssModel.tags = Editor.text } } diff --git a/demos/declarative/flickr/mobile/ToolBar.qml b/demos/declarative/flickr/mobile/ToolBar.qml index 80897cc..8ac5127 100644 --- a/demos/declarative/flickr/mobile/ToolBar.qml +++ b/demos/declarative/flickr/mobile/ToolBar.qml @@ -3,20 +3,22 @@ import Qt 4.6 Item { id: Toolbar - property var button1Label - property var button2Label + property alias button1Label: Button1.text + property alias button2Label: Button2.text signal button1Clicked signal button2Clicked BorderImage { source: "images/titlebar2.sci"; width: parent.width; height: parent.height + 14; y: -7 } Button { - anchors.left: parent.left; anchors.leftMargin: 5; y: 3; width: 140; height: 32; text: button1Label + id: Button1 + anchors.left: parent.left; anchors.leftMargin: 5; y: 3; width: 140; height: 32 onClicked: Toolbar.button1Clicked() } Button { - anchors.right: parent.right; anchors.rightMargin: 5; y: 3; width: 140; height: 32; text: button2Label + id: Button2 + anchors.right: parent.right; anchors.rightMargin: 5; y: 3; width: 140; height: 32 onClicked: Toolbar.button2Clicked() } } |