diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-08-29 09:45:59 +0300 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2018-09-04 14:16:54 +0000 |
commit | 3bd2541f84be5200a54c7565074ea22992397c79 (patch) | |
tree | 6d29532cdcf10a59cd133129ad31bf06f584b812 /src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp | |
parent | ffd680a132db99f1fa1e9ebb75c844c491afa83b (diff) | |
download | qtlocation-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/declarativemaps/qdeclarativegeoserviceprovider.cpp')
-rw-r--r-- | src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp b/src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp index 09309bcd..b594d2dc 100644 --- a/src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp +++ b/src/location/declarativemaps/qdeclarativegeoserviceprovider.cpp @@ -146,6 +146,7 @@ void QDeclarativeGeoServiceProvider::tryAttach() return; sharedProvider_ = new QGeoServiceProvider(name_, parameterMap()); + sharedProvider_->setQmlEngine(qmlEngine(this)); sharedProvider_->setLocale(locales_.at(0)); sharedProvider_->setAllowExperimental(experimental_); |