summaryrefslogtreecommitdiffstats
path: root/demos/declarative/flickr
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2010-02-22 05:10:37 (GMT)
committerMartin Jones <martin.jones@nokia.com>2010-02-22 05:10:37 (GMT)
commit1ad3918809ea6c4ac3c1b185581f1c8e76f02aca (patch)
tree79c712286b530383b90ef426a560bed93208b1d5 /demos/declarative/flickr
parentbffef59bcefd73a5474f3c3052c951977b60eb27 (diff)
downloadQt-1ad3918809ea6c4ac3c1b185581f1c8e76f02aca.zip
Qt-1ad3918809ea6c4ac3c1b185581f1c8e76f02aca.tar.gz
Qt-1ad3918809ea6c4ac3c1b185581f1c8e76f02aca.tar.bz2
Rename MouseRegion -> MouseArea
Diffstat (limited to 'demos/declarative/flickr')
-rw-r--r--demos/declarative/flickr/common/MediaButton.qml2
-rw-r--r--demos/declarative/flickr/common/MediaLineEdit.qml2
-rw-r--r--demos/declarative/flickr/common/Slider.qml2
-rw-r--r--demos/declarative/flickr/common/Star.qml2
-rw-r--r--demos/declarative/flickr/flickr-desktop.qml2
-rw-r--r--demos/declarative/flickr/mobile/Button.qml2
-rw-r--r--demos/declarative/flickr/mobile/GridDelegate.qml2
7 files changed, 7 insertions, 7 deletions
diff --git a/demos/declarative/flickr/common/MediaButton.qml b/demos/declarative/flickr/common/MediaButton.qml
index c12b642..86ac948 100644
--- a/demos/declarative/flickr/common/MediaButton.qml
+++ b/demos/declarative/flickr/common/MediaButton.qml
@@ -16,7 +16,7 @@ Item {
source: "pics/button-pressed.png"
opacity: 0
}
- MouseRegion {
+ MouseArea {
id: mouseRegion
anchors.fill: buttonImage
onClicked: { container.clicked(); }
diff --git a/demos/declarative/flickr/common/MediaLineEdit.qml b/demos/declarative/flickr/common/MediaLineEdit.qml
index b24b296..3dfd1f3 100644
--- a/demos/declarative/flickr/common/MediaLineEdit.qml
+++ b/demos/declarative/flickr/common/MediaLineEdit.qml
@@ -62,7 +62,7 @@ Item {
anchors.right: container.right
}
- MouseRegion {
+ MouseArea {
id: mouseRegion
anchors.fill: buttonImage
onClicked: { container.state = container.state=="Edit" ? "" : "Edit" }
diff --git a/demos/declarative/flickr/common/Slider.qml b/demos/declarative/flickr/common/Slider.qml
index fa1645c..05a87e7 100644
--- a/demos/declarative/flickr/common/Slider.qml
+++ b/demos/declarative/flickr/common/Slider.qml
@@ -27,7 +27,7 @@ Item {
GradientStop { position: 1.0; color: "gray" }
}
- MouseRegion {
+ MouseArea {
anchors.fill: parent; drag.target: parent
drag.axis: "XAxis"; drag.minimumX: 2; drag.maximumX: slider.xMax+2
onPositionChanged: { value = (maximum - minimum) * (handle.x-2) / slider.xMax + minimum; }
diff --git a/demos/declarative/flickr/common/Star.qml b/demos/declarative/flickr/common/Star.qml
index 173021b..8cd47b4 100644
--- a/demos/declarative/flickr/common/Star.qml
+++ b/demos/declarative/flickr/common/Star.qml
@@ -17,7 +17,7 @@ Item {
opacity: 0.4
scale: 0.5
}
- MouseRegion {
+ MouseArea {
anchors.fill: container
onClicked: { container.clicked() }
}
diff --git a/demos/declarative/flickr/flickr-desktop.qml b/demos/declarative/flickr/flickr-desktop.qml
index 3848f12..1ca3cdc 100644
--- a/demos/declarative/flickr/flickr-desktop.qml
+++ b/demos/declarative/flickr/flickr-desktop.qml
@@ -61,7 +61,7 @@ Item {
}
}
- MouseRegion { anchors.fill: wrapper; onClicked: { photoClicked() } }
+ MouseArea { anchors.fill: wrapper; onClicked: { photoClicked() } }
states: [
State {
diff --git a/demos/declarative/flickr/mobile/Button.qml b/demos/declarative/flickr/mobile/Button.qml
index 770330c..4ba6b19 100644
--- a/demos/declarative/flickr/mobile/Button.qml
+++ b/demos/declarative/flickr/mobile/Button.qml
@@ -18,7 +18,7 @@ Item {
source: "images/toolbutton.sci"
width: container.width; height: container.height
}
- MouseRegion {
+ MouseArea {
id: mouseRegion
anchors.fill: buttonImage
onClicked: { container.clicked(); }
diff --git a/demos/declarative/flickr/mobile/GridDelegate.qml b/demos/declarative/flickr/mobile/GridDelegate.qml
index 6c12896..0f5b69c 100644
--- a/demos/declarative/flickr/mobile/GridDelegate.qml
+++ b/demos/declarative/flickr/mobile/GridDelegate.qml
@@ -67,6 +67,6 @@
}
]
}
- MouseRegion { anchors.fill: wrapper; onClicked: { photoClicked() } }
+ MouseArea { anchors.fill: wrapper; onClicked: { photoClicked() } }
}
}