summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2009-09-03 03:32:53 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2009-09-03 03:32:53 (GMT)
commit17ffae16bd1ea4e4c37b2ef3d0dc0de2d5a517a1 (patch)
tree55f673f07f069439f4adda932d79c67fa5a45e6a /examples
parentb1d0b92d6c9c150299a0180349ccc50114ae9273 (diff)
parentd25029907965429f62b9c3edae93a8171650e3a9 (diff)
downloadQt-17ffae16bd1ea4e4c37b2ef3d0dc0de2d5a517a1.zip
Qt-17ffae16bd1ea4e4c37b2ef3d0dc0de2d5a517a1.tar.gz
Qt-17ffae16bd1ea4e4c37b2ef3d0dc0de2d5a517a1.tar.bz2
Merge branch 'kinetic-declarativeui' of git@scm.dev.nokia.troll.no:qt/kinetic into kinetic-declarativeui
Diffstat (limited to 'examples')
-rw-r--r--examples/declarative/scrollbar/ScrollBar.qml4
-rw-r--r--examples/declarative/scrollbar/display.qml10
2 files changed, 6 insertions, 8 deletions
diff --git a/examples/declarative/scrollbar/ScrollBar.qml b/examples/declarative/scrollbar/ScrollBar.qml
index c1c4a4f..b42563d 100644
--- a/examples/declarative/scrollbar/ScrollBar.qml
+++ b/examples/declarative/scrollbar/ScrollBar.qml
@@ -7,8 +7,8 @@ Item {
// height of the page, i.e. a pageSize of 0.5 means that you can see 50%
// of the height of the view.
// orientation can be either 'Vertical' or 'Horizontal'
- property var position
- property var pageSize
+ property real position
+ property real pageSize
property var orientation : "Vertical"
// A light, semi-transparent background
diff --git a/examples/declarative/scrollbar/display.qml b/examples/declarative/scrollbar/display.qml
index 48cceb7..0180bda 100644
--- a/examples/declarative/scrollbar/display.qml
+++ b/examples/declarative/scrollbar/display.qml
@@ -38,22 +38,20 @@ Rectangle {
id: SBV
opacity: 0
orientation: "Vertical"
- position: View.pageYPosition
- pageSize: View.pageHeight
+ position: View.visibleArea.yPosition
+ pageSize: View.visibleArea.heightRatio
width: 12
height: View.height-12
anchors.right: View.right
}
- /*
ScrollBar {
id: SBH
opacity: 0
orientation: "Horizontal"
- position: View.pageXPosition
- pageSize: View.pageWidth
+ position: View.visibleArea.xPosition
+ pageSize: View.visibleArea.widthRatio
height: 12
width: View.width-12
anchors.bottom: View.bottom
}
- */
}