summaryrefslogtreecommitdiffstats
path: root/examples/declarative/slideswitch/content/Switch.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/slideswitch/content/Switch.qml')
-rw-r--r--examples/declarative/slideswitch/content/Switch.qml2
1 files changed, 1 insertions, 1 deletions
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()
}