places_map example: add support for LocationPermission


The example didn't make use of the new permissions API, and, as a
result, it was throwing errors when trying to use PositionSource.

Rework the example to use the LocationPermission API.
The idea is that the premission is checked during the application
startup. If the permission is not granted, a new window is shown. This
window contans some explanations on why the user should enable the
location permission and a "button" to do that.
If the permission is granted, the Loaded is used to load a normal
application page. Otherwise an error message is displayed.

Task-number: QTBUG-121412
Pick-to: 6.7 6.6
Change-Id: I992e485b71b193e4a106cf42aed8c17f57b9fc46
Reviewed-by: MohammadHossein Qanbari <mohammad.qanbari@qt.io>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
commit0c87f4ad1bd6e540bb936dd7f1fd8c50c6f8f43a
parent1ac0324b10fac7795824f9055ccbedfd5a0789d7
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeFri, 26 Jan 2024 17:59:44 +0100