summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
diff options
context:
space:
mode:
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.qml17
1 files changed, 3 insertions, 14 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 8073e638..4cbbab74 100644
--- a/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
+++ b/tests/auto/declarative_ui/tst_map_item_fit_viewport.qml
@@ -110,17 +110,8 @@ Item {
property variant mapRouteTopLeft: QtLocation.coordinate(0, 0)
property variant mapRouteBottomRight: QtLocation.coordinate(0, 0)
- GeoRectangle {
- id: boundingBox
- topLeft {
- latitude: 0
- longitude: 0
- }
- bottomRight {
- latitude: 0
- longitude: 0
- }
- }
+ property variant boundingBox: QtLocation.rectangle(QtLocation.coordinate(0, 0),
+ QtLocation.coordinate(0, 0))
Map {
id: map;
@@ -477,9 +468,7 @@ Item {
point.y = maxY
var itemBottomRight = map.toCoordinate(point)
- boundingBox.topLeft = itemTopLeft;
- boundingBox.bottomRight = itemBottomRight;
- return boundingBox
+ return QtLocation.rectangle(itemTopLeft, itemBottomRight);
}
function verify_visibility_all_items(){