qtdoc/examples/demos/lightningviewer
MohammadHossein Qanbari 6cc0edc108 Lightning Viewer Example: Support LocationPermission
If the permission is granted, the user location will be visible and the
map view can be recentered.
Otherwise, if the user has already denied the permission and triggers
any action that needs the permission, a message dialog will notify the
user that the application needs the location permission, and the
permission is needed to be granted and the application needs to be
restarted.

Additionally, the PositionSource is not active when the permission is
not granted, and the distance and time layer is not able to show the
information until the user allows the application to use the location.

The user's location will be set from QML by PositionSource, then there
is no need to keep the QGeoPositionInfoSource object.

Task-number: QTBUG-121412
Task-number: QTBUG-121123
Pick-to: 6.7
Change-Id: I78856f8cc8d182aa7b02c1ffaba01a8871e0a0c6
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2024-02-01 14:15:21 +01:00
..
LightningViewer Lightning Viewer Example: Support LocationPermission 2024-02-01 14:15:21 +01:00
LightningViewerStyle Lightning Viewer Example: Use QML Module and Restructure Project Files 2024-01-26 14:21:19 +01:00
doc Demos: Add dependency info to example metadata 2024-01-19 10:26:22 +01:00
CMakeLists.txt Lightning Viewer Example: Add OpenSSL for Android 2024-01-26 15:45:05 +01:00
Info.plist Examples: Add LightningViewer (V1) 2023-12-23 00:07:03 +01:00
main.cpp Lightning Viewer Example: Use QML Module and Restructure Project Files 2024-01-26 14:21:19 +01:00