mapwidget.qml: add better error reporing on a missing map plugin

For instance, if the 'googlemaps' geoservices plugin is missing
a new message is now shown:
"qml: MapWidget.qml: cannot find a plugin with the name 'googlemaps'"

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
This commit is contained in:
Lubomir I. Ivanov 2017-08-06 16:53:09 +03:00 committed by Dirk Hohndel
parent aea1cc4b8a
commit 6fb841887d

View file

@ -10,6 +10,10 @@ Item {
Plugin {
id: mapPlugin
name: "googlemaps"
Component.onCompleted: {
if (availableServiceProviders.indexOf(name) === -1)
console.warn("MapWidget.qml: cannot find a plugin with the name '" + name + "'")
}
}
MapWidgetHelper {