summaryrefslogtreecommitdiffstats
path: root/examples/declarative/slideswitch/content/Switch.qml
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2010-02-23 08:24:31 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2010-02-23 08:24:31 (GMT)
commita948f901b196bab121cb8b5736204b4ce0c09e94 (patch)
treee87ac8e797b93203998c1bbb32c2e1120567b137 /examples/declarative/slideswitch/content/Switch.qml
parentac99b3e243b331d26815b80aab97cdaf0ed06b0f (diff)
parent2e417e2a3963151a2b3a3033e6f5bb0e106d8db4 (diff)
downloadQt-a948f901b196bab121cb8b5736204b4ce0c09e94.zip
Qt-a948f901b196bab121cb8b5736204b4ce0c09e94.tar.gz
Qt-a948f901b196bab121cb8b5736204b4ce0c09e94.tar.bz2
Merge branch 'master' of scm.dev.nokia.troll.no:qt/oslo-staging-2
Diffstat (limited to 'examples/declarative/slideswitch/content/Switch.qml')
-rw-r--r--examples/declarative/slideswitch/content/Switch.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/declarative/slideswitch/content/Switch.qml b/examples/declarative/slideswitch/content/Switch.qml
index c7f1c24..930f471 100644
--- a/examples/declarative/slideswitch/content/Switch.qml
+++ b/examples/declarative/slideswitch/content/Switch.qml
@@ -32,7 +32,7 @@ Item {
//![4]
Image {
id: background; source: "background.svg"
- MouseRegion { anchors.fill: parent; onClicked: toggle() }
+ MouseArea { anchors.fill: parent; onClicked: toggle() }
}
//![4]
@@ -40,7 +40,7 @@ Item {
Image {
id: knob; source: "knob.svg"; x: 1; y: 2
- MouseRegion {
+ MouseArea {
anchors.fill: parent
drag.target: knob; drag.axis: "XAxis"; drag.minimumX: 1; drag.maximumX: 78
onClicked: toggle()