summaryrefslogtreecommitdiffstats
path: root/examples/declarative/listview/dynamic.qml
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 /examples/declarative/listview/dynamic.qml
parentbffef59bcefd73a5474f3c3052c951977b60eb27 (diff)
downloadQt-1ad3918809ea6c4ac3c1b185581f1c8e76f02aca.zip
Qt-1ad3918809ea6c4ac3c1b185581f1c8e76f02aca.tar.gz
Qt-1ad3918809ea6c4ac3c1b185581f1c8e76f02aca.tar.bz2
Rename MouseRegion -> MouseArea
Diffstat (limited to 'examples/declarative/listview/dynamic.qml')
-rw-r--r--examples/declarative/listview/dynamic.qml12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/declarative/listview/dynamic.qml b/examples/declarative/listview/dynamic.qml
index dd898f9..81550d7 100644
--- a/examples/declarative/listview/dynamic.qml
+++ b/examples/declarative/listview/dynamic.qml
@@ -57,10 +57,10 @@ Rectangle {
Column {
id: moveButtons; x: 5; width: childrenRect.width; anchors.verticalCenter: parent.verticalCenter
Image { source: "content/pics/go-up.png"
- MouseRegion { anchors.fill: parent; onClicked: fruitModel.move(index,index-1,1) }
+ MouseArea { anchors.fill: parent; onClicked: fruitModel.move(index,index-1,1) }
}
Image { source: "content/pics/go-down.png"
- MouseRegion { anchors.fill: parent; onClicked: fruitModel.move(index,index+1,1) }
+ MouseArea { anchors.fill: parent; onClicked: fruitModel.move(index,index+1,1) }
}
}
@@ -93,7 +93,7 @@ Rectangle {
Image {
id: removeButton; source: "content/pics/archive-remove.png"
anchors { verticalCenter: parent.verticalCenter; right: parent.right; rightMargin: 10 }
- MouseRegion { anchors.fill:parent; onClicked: fruitModel.remove(index) }
+ MouseArea { anchors.fill:parent; onClicked: fruitModel.remove(index) }
}
}
}
@@ -131,7 +131,7 @@ Rectangle {
spacing: 8
id: buttons
Image { source: "content/pics/archive-insert.png"
- MouseRegion { anchors.fill: parent;
+ MouseArea { anchors.fill: parent;
onClicked: {
fruitModel.append({
"name":"Pizza Margarita",
@@ -142,7 +142,7 @@ Rectangle {
}
}
Image { source: "content/pics/archive-insert.png"
- MouseRegion { anchors.fill: parent;
+ MouseArea { anchors.fill: parent;
onClicked: {
fruitModel.insert(0,{
"name":"Pizza Supreme",
@@ -153,7 +153,7 @@ Rectangle {
}
}
Image { source: "content/pics/archive-remove.png"
- MouseRegion { anchors.fill: parent; onClicked: fruitModel.clear() }
+ MouseArea { anchors.fill: parent; onClicked: fruitModel.clear() }
}
}
}