summaryrefslogtreecommitdiffstats
path: root/demos/declarative
diff options
context:
space:
mode:
authorYann Bodson <yann.bodson@nokia.com>2010-05-06 01:16:45 (GMT)
committerYann Bodson <yann.bodson@nokia.com>2010-05-06 01:17:56 (GMT)
commitc16cc8c4d03cb062c5164295cad75509ec31feaf (patch)
tree73fe7f4ed43bfa7bbf26f834db5275023607ec41 /demos/declarative
parent385799a8269dfb5b48de9e84e52af780fb400272 (diff)
downloadQt-c16cc8c4d03cb062c5164295cad75509ec31feaf.zip
Qt-c16cc8c4d03cb062c5164295cad75509ec31feaf.tar.gz
Qt-c16cc8c4d03cb062c5164295cad75509ec31feaf.tar.bz2
Use enum for drag.axis in doc and examples.
Diffstat (limited to 'demos/declarative')
-rw-r--r--demos/declarative/flickr/common/Slider.qml2
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/declarative/flickr/common/Slider.qml b/demos/declarative/flickr/common/Slider.qml
index 4da370e..76f6303 100644
--- a/demos/declarative/flickr/common/Slider.qml
+++ b/demos/declarative/flickr/common/Slider.qml
@@ -29,7 +29,7 @@ Item {
MouseArea {
anchors.fill: parent; drag.target: parent
- drag.axis: "XAxis"; drag.minimumX: 2; drag.maximumX: slider.xMax+2
+ drag.axis: Drag.XAxis; drag.minimumX: 2; drag.maximumX: slider.xMax+2
onPositionChanged: { value = (maximum - minimum) * (handle.x-2) / slider.xMax + minimum; }
}
}