summaryrefslogtreecommitdiff
path: root/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
diff options
context:
space:
mode:
authorFabian Bumberger <fbumberger@rim.com>2013-11-15 07:45:54 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-06 01:38:32 +0100
commit545e3f0540a1bd8e431391e325038fabca915867 (patch)
treed41d8d88921de1a407f30e8d8e39a5bdce7bf2a5 /tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
parent4a1f2da3df92eed75cb7d473ae77c63e48fdd97a (diff)
downloadqtlocation-545e3f0540a1bd8e431391e325038fabca915867.tar.gz
Remove the GeoMapMouseArea
I don't see a reason for keeping this. First of all, only half of it is implemented. Second we can have the same behavior with a normal MouseArea. The only advantage a MapMouseArea has is that mouse events are only received in the boundaries of the parent map item. However with a bit of work in the parent map item we can have this behavior as well for a normal mouse area. The only thing we are eventually loosing is the geocoordinate property of the MapMouseEvent. But this can be easily obtained with the "toCoordinate" function in the Map item. Change-Id: Icb176ee7d7c2881df714ab3191fa1f7f5c8915e2 Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com> Reviewed-by: Alex Blasche <alexander.blasche@digia.com>
Diffstat (limited to 'tests/auto/declarative_ui/tst_map_item_fit_viewport.qml')
-rw-r--r--tests/auto/declarative_ui/tst_map_item_fit_viewport.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml b/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
index ff3d224c..26cef4f8 100644
--- a/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
+++ b/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
@@ -152,8 +152,7 @@ Item {
border.width: 0
center: preMapCircleDefaultCenter
radius: 400000
- MapMouseArea {
- id: preMapCircleMa
+ MouseArea {
anchors.fill: parent
drag.target: parent
SignalSpy { id: preMapCircleClicked; target: parent; signalName: "clicked" }
@@ -167,7 +166,7 @@ Item {
}
MapQuickItem {
id: preMapQuickItem
- MapMouseArea {
+ MouseArea {
anchors.fill: parent
drag.target: parent
SignalSpy { id: preMapQuickItemClicked; target: parent; signalName: "clicked" }
@@ -193,7 +192,7 @@ Item {
{ latitude: 20, longitude: 10 },
{ latitude: 15, longitude: 6 }
]
- MapMouseArea {
+ MouseArea {
anchors.fill: parent
drag.target: parent
SignalSpy { id: preMapPolygonClicked; target: parent; signalName: "clicked" }