summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMatthias Rauter <matthias.rauter@qt.io>2023-02-17 17:18:46 +0100
committerMatthias Rauter <matthias.rauter@qt.io>2023-02-22 12:13:45 +0100
commitf19a0b27d4945ef633ca6602d4af63abad88f134 (patch)
tree51ed1d682e175a0756eec6b5562002f446d7624c /tests
parent734545264c5ed3c5e3cc50613ae63766ff48baf2 (diff)
downloadqtlocation-f19a0b27d4945ef633ca6602d4af63abad88f134.tar.gz
Add boundaries to zoomLevel in MapView
There was a bug in the notification handling in QDeclarativeGeoMap that prevented BoundaryRule to work properly. This bug was fixed along the way. Pick-to: 6.5 Change-Id: Iae85019c7cceb77dab6f20478b564908797f7ccd Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/declarative_ui/tst_map.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/declarative_ui/tst_map.qml b/tests/auto/declarative_ui/tst_map.qml
index 7fd18a83..2708d798 100644
--- a/tests/auto/declarative_ui/tst_map.qml
+++ b/tests/auto/declarative_ui/tst_map.qml
@@ -257,13 +257,13 @@ Item {
//Trying to set higher than max, max should be set.
map.maximumZoomLevel = 21
compare(map.minimumZoomLevel, 5)
- compare(map.maximumZoomLevel, 21) // TODO enforce maximum from the plugin
+ compare(map.maximumZoomLevel, 20)
//Negative values should be ignored
map.minimumZoomLevel = -1
map.maximumZoomLevel = -2
compare(map.minimumZoomLevel, 5)
- compare(map.maximumZoomLevel, 21)
+ compare(map.maximumZoomLevel, 20)
//Max limit lower than curr zoom, should change curr zoom
map.zoomLevel = 18