diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-08-19 01:50:35 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-08-19 01:50:35 (GMT) |
commit | b3c992c9b53d8f1630bdbc7472a29910f11ee035 (patch) | |
tree | 7074cf1a94ee556809c2b9db8a604be3fa8e4f9e /demos | |
parent | 1a226c81b7461b793fb94df5817701caef9c2014 (diff) | |
download | Qt-b3c992c9b53d8f1630bdbc7472a29910f11ee035.zip Qt-b3c992c9b53d8f1630bdbc7472a29910f11ee035.tar.gz Qt-b3c992c9b53d8f1630bdbc7472a29910f11ee035.tar.bz2 |
API improvements for MouseRegion and Drag
Diffstat (limited to 'demos')
-rw-r--r-- | demos/declarative/flickr/content/Slider.qml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/declarative/flickr/content/Slider.qml b/demos/declarative/flickr/content/Slider.qml index a2ec420..24f6f90 100644 --- a/demos/declarative/flickr/content/Slider.qml +++ b/demos/declarative/flickr/content/Slider.qml @@ -29,7 +29,7 @@ Item { MouseRegion { anchors.fill: parent; drag.target: parent - drag.axis: "x"; drag.minimumX: 2; drag.maximumX: Slider.xMax+2 + drag.axis: "XAxis"; drag.minimumX: 2; drag.maximumX: Slider.xMax+2 onPositionChanged: { value = (maximum - minimum) * (Handle.x-2) / Slider.xMax + minimum; } } } |