diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-08-28 06:42:02 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-08-28 06:42:02 (GMT) |
commit | 67ca33d53ff805ca33ba775524086a89cb975df9 (patch) | |
tree | 04e02fc9a2ac0c6832c5189022b49a3419d9d762 /demos/declarative/webbrowser/webbrowser.qml | |
parent | d7400c910765bcbff6927143c348c771310b9d44 (diff) | |
download | Qt-67ca33d53ff805ca33ba775524086a89cb975df9.zip Qt-67ca33d53ff805ca33ba775524086a89cb975df9.tar.gz Qt-67ca33d53ff805ca33ba775524086a89cb975df9.tar.bz2 |
Make a number of Flickable API changes following review.
Diffstat (limited to 'demos/declarative/webbrowser/webbrowser.qml')
-rw-r--r-- | demos/declarative/webbrowser/webbrowser.qml | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/demos/declarative/webbrowser/webbrowser.qml b/demos/declarative/webbrowser/webbrowser.qml index ec3a2a0..126fa87 100644 --- a/demos/declarative/webbrowser/webbrowser.qml +++ b/demos/declarative/webbrowser/webbrowser.qml @@ -48,8 +48,8 @@ Item { anchors.bottom: Footer.top } RectSoftShadow { - x: -Flick.xPosition - y: -Flick.yPosition + x: -Flick.viewportX + y: -Flick.viewportY width: MyWebView.width*MyWebView.scale height: Flick.y+MyWebView.height*MyWebView.scale } @@ -72,10 +72,10 @@ Item { width: parent.width height: 64 state: "Normal" - x: Flick.xPosition < 0 ? -Flick.xPosition : Flick.xPosition > Flick.viewportWidth-Flick.width - ? -Flick.xPosition+Flick.viewportWidth-Flick.width : 0 - y: Flick.yPosition < 0 ? -Flick.yPosition : progressOff* - (Flick.yPosition>height?-height:-Flick.yPosition) + x: Flick.viewportX < 0 ? -Flick.viewportX : Flick.viewportX > Flick.viewportWidth-Flick.width + ? -Flick.viewportX+Flick.viewportWidth-Flick.width : 0 + y: Flick.viewportY < 0 ? -Flick.viewportY : progressOff* + (Flick.viewportY>height?-height:-Flick.viewportY) Text { id: HeaderText @@ -335,8 +335,8 @@ Item { State { name: "Normal" PropertyChanges { target: MyWebView; zoomedOut: 0 } - PropertyChanges { target: Flick; explicit: true; xPosition: Math.min(MyWebView.width-Flick.width,Math.max(0,Flick.centerX-Flick.width/2)) } - PropertyChanges { target: Flick; explicit: true; yPosition: Math.min(MyWebView.height-Flick.height,Math.max(0,Flick.centerY-Flick.height/2)) } + PropertyChanges { target: Flick; explicit: true; viewportX: Math.min(MyWebView.width-Flick.width,Math.max(0,Flick.centerX-Flick.width/2)) } + PropertyChanges { target: Flick; explicit: true; viewportY: Math.min(MyWebView.height-Flick.height,Math.max(0,Flick.centerY-Flick.height/2)) } }, State { name: "ZoomedOut" @@ -360,7 +360,7 @@ Item { } NumberAnimation { target: Flick - properties: "xPosition,yPosition" + properties: "viewportX,viewportY" easing: "easeInOutQuad" duration: 200 } |