summaryrefslogtreecommitdiffstats
path: root/demos/declarative
diff options
context:
space:
mode:
Diffstat (limited to 'demos/declarative')
-rw-r--r--demos/declarative/flickr/common/ScrollBar.qml2
-rw-r--r--demos/declarative/flickr/mobile/ImageDetails.qml4
-rw-r--r--demos/declarative/webbrowser/content/ScrollBar.qml2
-rw-r--r--demos/declarative/webbrowser/webbrowser.qml14
4 files changed, 9 insertions, 13 deletions
diff --git a/demos/declarative/flickr/common/ScrollBar.qml b/demos/declarative/flickr/common/ScrollBar.qml
index 4022d23..d70cd3c 100644
--- a/demos/declarative/flickr/common/ScrollBar.qml
+++ b/demos/declarative/flickr/common/ScrollBar.qml
@@ -19,7 +19,7 @@ Item {
states: [
State {
name: "show"
- when: flickableArea.moving
+ when: flickableArea.movingVertically
PropertyChanges {
target: container
opacity: 1
diff --git a/demos/declarative/flickr/mobile/ImageDetails.qml b/demos/declarative/flickr/mobile/ImageDetails.qml
index caf1571..79d7cab 100644
--- a/demos/declarative/flickr/mobile/ImageDetails.qml
+++ b/demos/declarative/flickr/mobile/ImageDetails.qml
@@ -70,7 +70,7 @@ Flipable {
Image {
id: bigImage; source: container.photoUrl; scale: slider.value
- anchors.centerIn: parent; smooth: !flickable.moving
+ anchors.centerIn: parent; smooth: !flickable.movingVertically
onStatusChanged : {
// Default scale shows the entire image.
if (status == Image.Ready && width != 0) {
@@ -119,7 +119,7 @@ Flipable {
SequentialAnimation {
PropertyAction { target: bigImage; property: "smooth"; value: false }
NumberAnimation { easing.type: Easing.InOutQuad; properties: "angle"; duration: 500 }
- PropertyAction { target: bigImage; property: "smooth"; value: !flickable.moving }
+ PropertyAction { target: bigImage; property: "smooth"; value: !flickable.movingVertically }
}
}
}
diff --git a/demos/declarative/webbrowser/content/ScrollBar.qml b/demos/declarative/webbrowser/content/ScrollBar.qml
index 976297b..aa79d35 100644
--- a/demos/declarative/webbrowser/content/ScrollBar.qml
+++ b/demos/declarative/webbrowser/content/ScrollBar.qml
@@ -55,7 +55,7 @@ Item {
states: State {
name: "visible"
- when: scrollArea.moving
+ when: container.orientation == Qt.Vertical ? scrollArea.movingVertically : scrollArea.movingHorizontally
PropertyChanges { target: container; opacity: 1.0 }
}
diff --git a/demos/declarative/webbrowser/webbrowser.qml b/demos/declarative/webbrowser/webbrowser.qml
index 27da814..f539e21 100644
--- a/demos/declarative/webbrowser/webbrowser.qml
+++ b/demos/declarative/webbrowser/webbrowser.qml
@@ -15,13 +15,9 @@ Rectangle {
id: webView
url: webBrowser.urlString
anchors { top: headerSpace.bottom; left: parent.left; right: parent.right; bottom: parent.bottom }
-
}
- Item {
- id: headerSpace
- width: parent.width; height: 62
- }
+ Item { id: headerSpace; width: parent.width; height: 62 }
Header {
id: header
@@ -34,8 +30,8 @@ Rectangle {
anchors { right: parent.right; top: header.bottom; bottom: parent.bottom }
}
-// ScrollBar {
-// scrollArea: webView; height: 8; orientation: Qt.Horizontal
-// anchors { right: parent.right; rightMargin: 8; left: parent.left; bottom: parent.bottom }
-// }
+ ScrollBar {
+ scrollArea: webView; height: 8; orientation: Qt.Horizontal
+ anchors { right: parent.right; rightMargin: 8; left: parent.left; bottom: parent.bottom }
+ }
}