subsurface/mobile-widgets/qml
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
..
icons Add star icons 2017-08-02 18:49:47 -07:00
About.qml Add SPDX header to mobile widgets and QML files 2017-04-29 13:32:55 -07:00
CloudCredentials.qml QML UI: cleanup some whitespace and string formatting 2017-09-29 08:13:25 -07:00
dive.jpg Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
DiveDetails.qml Whitespace 2017-10-05 13:40:31 -07:00
DiveDetailsEdit.qml QML UI: add transition when switching to edit mode 2017-10-05 08:21:55 -07:00
DiveDetailsView.qml QML UI: display rating and visibility stars 2017-08-02 18:49:47 -07:00
DiveList.qml QML UI: cleanup some whitespace and string formatting 2017-09-29 08:13:25 -07:00
DownloadedDiveDelegate.qml QML UI: replace all checkboxes with our own 2017-07-26 01:39:26 +09:00
DownloadFromDiveComputer.qml Adjust signature to match data we need 2017-08-26 12:27:12 -07:00
GpsList.qml QML UI: GPS: remove header 2017-08-07 00:52:32 -07:00
HintsTextEdit.qml QML UI: dive edit autocomplete 2017-08-02 18:49:47 -07:00
Log.qml QML UI: drop AppLog title and add margin instead 2017-07-06 09:34:37 -07:00
main.qml QML UI: open v2 user manual 2017-10-07 12:14:08 +03:00
MapWidget.qml mapwidgethelper: use dynamic creation of the Plugin object 2017-08-24 13:11:39 -07:00
MapWidgetContextMenu.qml mapwidgetcontextmenu: use a QtQuick 2.0 import 2017-09-16 08:35:29 -07:00
MapWidgetError.qml map-widget: don't crash if the map QML failed to load 2017-10-07 08:09:05 -07:00
mobile-resources.qrc QML UI: download icon in main menu 2017-10-04 17:13:46 -07:00
qtquickcontrols2.conf QML UI: Fully port dive edit to Kirigami2 2017-04-01 09:35:51 +02:00
Settings.qml QML UI: cleanup some whitespace and string formatting 2017-09-29 08:13:25 -07:00
SsrfButton.qml QML UI: add missing id line in our button 2017-07-26 14:13:22 +09:00
SsrfCheckBox.qml QML UI: add our own styled checkbox 2017-07-26 01:39:26 +09:00
SsrfSwitch.qml QML UI: add our own styled switch 2017-07-26 01:39:26 +09:00
StartPage.qml QML UI: cleanup some whitespace and string formatting 2017-09-29 08:13:25 -07:00
ThemeTest.qml Add SPDX header to mobile widgets and QML files 2017-04-29 13:32:55 -07:00