summaryrefslogtreecommitdiff
path: root/src/location/maps/qgeoserviceproviderfactory.cpp
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2018-08-29 09:45:59 +0300
committerPaolo Angelelli <paolo.angelelli@qt.io>2018-09-04 14:16:54 +0000
commit3bd2541f84be5200a54c7565074ea22992397c79 (patch)
tree6d29532cdcf10a59cd133129ad31bf06f584b812 /src/location/maps/qgeoserviceproviderfactory.cpp
parentffd680a132db99f1fa1e9ebb75c844c491afa83b (diff)
downloadqtlocation-3bd2541f84be5200a54c7565074ea22992397c79.tar.gz
Allow injecting the qml engine into geoservice plugins
With this geoservice plugins can register Image Providers. Change-Id: Ie2380d658758d2eba376035b4d0b5d5121cfcde2 Reviewed-by: Paolo Angelelli <paolo.angelelli@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/location/maps/qgeoserviceproviderfactory.cpp')
-rw-r--r--src/location/maps/qgeoserviceproviderfactory.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/location/maps/qgeoserviceproviderfactory.cpp b/src/location/maps/qgeoserviceproviderfactory.cpp
index 44ed3535..65a88710 100644
--- a/src/location/maps/qgeoserviceproviderfactory.cpp
+++ b/src/location/maps/qgeoserviceproviderfactory.cpp
@@ -207,4 +207,17 @@ QNavigationManagerEngine *QGeoServiceProviderFactoryV2::createNavigationManagerE
return 0;
}
+/*!
+ Notify the plugin when the qml engine is ready. In this moment the plugins can use it
+ to register Image Providers.
+
+ The default implementation does nothing.
+ \since 5.12
+*/
+void QGeoServiceProviderFactoryV3::setQmlEngine(QQmlEngine *engine)
+{
+ Q_UNUSED(engine)
+}
+
QT_END_NAMESPACE
+