summaryrefslogtreecommitdiff
path: root/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h')
-rw-r--r--tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h b/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
index 297be0d5..0db78336 100644
--- a/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
+++ b/tests/auto/geotestplugin/qgeotiledmappingmanagerengine_test.h
@@ -100,6 +100,10 @@ public:
double maxZoomLevel = parameters.value(QStringLiteral("maxZoomLevel")).toDouble();
capabilities.setMaximumZoomLevel(maxZoomLevel);
}
+ if (parameters.contains(QStringLiteral("supportVisibleArea"))) {
+ bool supportVisibleArea = parameters.value(QStringLiteral("supportVisibleArea")).toBool();
+ m_supportVisibleArea = supportVisibleArea;
+ }
setCameraCapabilities(capabilities);
fetcher->setTileSize(tileSize());
@@ -108,8 +112,12 @@ public:
QGeoMap *createMap() override
{
- return new QGeoTiledMapTest(this);
+ QGeoTiledMapTestOptions opts;
+ opts.supportVisibleArea = m_supportVisibleArea;
+ return new QGeoTiledMapTest(this, opts);
}
+
+ bool m_supportVisibleArea = true;
};
#endif