summaryrefslogtreecommitdiffstats
path: root/examples/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 /examples/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 'examples/declarative')
-rw-r--r--examples/declarative/dial/dial-example.qml2
-rw-r--r--examples/declarative/mousearea/mouse.qml2
-rw-r--r--examples/declarative/slideswitch/content/Switch.qml2
-rw-r--r--examples/declarative/velocity/Day.qml2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/declarative/dial/dial-example.qml b/examples/declarative/dial/dial-example.qml
index fd899a5..2e102b0 100644
--- a/examples/declarative/dial/dial-example.qml
+++ b/examples/declarative/dial/dial-example.qml
@@ -37,7 +37,7 @@ Rectangle {
MouseArea {
anchors.fill: parent
- drag.target: parent; drag.axis: "XAxis"; drag.minimumX: 2; drag.maximumX: container.width - 32
+ drag.target: parent; drag.axis: Drag.XAxis; drag.minimumX: 2; drag.maximumX: container.width - 32
}
}
}
diff --git a/examples/declarative/mousearea/mouse.qml b/examples/declarative/mousearea/mouse.qml
index 67302a8..06134b7 100644
--- a/examples/declarative/mousearea/mouse.qml
+++ b/examples/declarative/mousearea/mouse.qml
@@ -33,7 +33,7 @@ Rectangle {
MouseArea {
anchors.fill: parent
drag.target: parent
- drag.axis: "XAxis"
+ drag.axis: Drag.XAxis
drag.minimumX: 0
drag.maximumX: 150
diff --git a/examples/declarative/slideswitch/content/Switch.qml b/examples/declarative/slideswitch/content/Switch.qml
index 1aa7696..526a171 100644
--- a/examples/declarative/slideswitch/content/Switch.qml
+++ b/examples/declarative/slideswitch/content/Switch.qml
@@ -45,7 +45,7 @@ Item {
MouseArea {
anchors.fill: parent
- drag.target: knob; drag.axis: "XAxis"; drag.minimumX: 1; drag.maximumX: 78
+ drag.target: knob; drag.axis: Drag.XAxis; drag.minimumX: 1; drag.maximumX: 78
onClicked: toggle()
onReleased: dorelease()
}
diff --git a/examples/declarative/velocity/Day.qml b/examples/declarative/velocity/Day.qml
index 433295b..350c1c4 100644
--- a/examples/declarative/velocity/Day.qml
+++ b/examples/declarative/velocity/Day.qml
@@ -61,7 +61,7 @@ Component {
id: mouse
anchors.fill: parent
drag.target: stickyPage
- drag.axis: "XandYAxis"
+ drag.axis: Drag.XandYAxis
drag.minimumY: 0
drag.maximumY: page.height - 80
drag.minimumX: 100