mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 06:00:20 +00:00
1da4f91cc8
The googlemaps plugin is about to support tile language via the PluginParameter 'googlemaps.maps.language'. To be able to pass the subsurface UI language (obtained from the uiLanguage() helper) the Plugin has to be created dynamically, only *after* the MapWidgetHelper is created. MapWidgetHelper::pluginObject() now provides a QString which contains the Plugin object and also include the uiLanguage ISO value. This string is used in mapwidget.qml as: map.plugin = Qt.createQmlObject(pluginObject, rootItem) This creates the Plugin object dynamically with the proper UI language string, but also requires a couple of small changes: - move the declaration of map.mapType after the Qt.createQmlObject() call - assign map.activeMapType after map.mapType has a value Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com> |
||
---|---|---|
.. | ||
icons | ||
About.qml | ||
CloudCredentials.qml | ||
dive.jpg | ||
DiveDetails.qml | ||
DiveDetailsEdit.qml | ||
DiveDetailsView.qml | ||
DiveList.qml | ||
DownloadedDiveDelegate.qml | ||
DownloadFromDiveComputer.qml | ||
GpsList.qml | ||
HintsTextEdit.qml | ||
Log.qml | ||
main.qml | ||
MapWidget.qml | ||
MapWidgetContextMenu.qml | ||
mobile-resources.qrc | ||
qtquickcontrols2.conf | ||
Settings.qml | ||
SsrfButton.qml | ||
SsrfCheckBox.qml | ||
SsrfSwitch.qml | ||
StartPage.qml | ||
ThemeTest.qml |