subsurface/mobile-widgets
Lubomir I. Ivanov 174b414436 map-widget: don't crash if the map QML failed to load
If the QML modules for QtLocation and QtPositioning are
missing the QML in mapwidget.cpp will fail to load,
which can lead to crashes.

To solve the issue check if the QML has loaded and set
a flag 'isReady' to true. If the loading has failed
load another QML which is for showing a red error text
in the lines of `MapWidget.qml failed to load!`.

If the map QML has failed, use a macro in all relevant
MapWidget members to turn them into a NOP. This approach
leaves the rest of the codebase intact - e.g. no checks
in classes which connect to the MapWidget class.

Fixes #596

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-10-07 08:09:05 -07:00
..
qml map-widget: don't crash if the map QML failed to load 2017-10-07 08:09:05 -07:00
qmlmanager.cpp QML UI: rework single credential page to two pages 2017-09-29 08:13:25 -07:00
qmlmanager.h mobile: add helper function cancelCredentialsPinSetup() 2017-09-29 08:13:25 -07:00
qmlmapwidgethelper.cpp mapwidgethelper: support Qt 5.5.x 2017-09-20 08:53:41 -07:00
qmlmapwidgethelper.h mapwidgethelper: use dynamic creation of the Plugin object 2017-08-24 13:11:39 -07:00
qmlprofile.cpp QML UI: adjust to modified logging API 2017-06-11 13:55:41 -07:00
qmlprofile.h Add SPDX header to mobile widgets and QML files 2017-04-29 13:32:55 -07:00