diff options
author | Mårten Nordheim <marten.nordheim@qt.io> | 2020-02-14 16:25:01 +0100 |
---|---|---|
committer | Mårten Nordheim <marten.nordheim@qt.io> | 2020-02-17 15:28:42 +0100 |
commit | a95c1e3a7cf55a43ba1a8b963aa0c0df02655747 (patch) | |
tree | 89cc15a59b5c03074dcab041e2bc0a6abfce7591 /examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc | |
parent | 0b81e828add7e77fd3aecaf46955f7d1a84321ae (diff) | |
download | qtlocation-a95c1e3a7cf55a43ba1a8b963aa0c0df02655747.tar.gz |
Remove use of bearer management from weatherinfo example
Change-Id: I8740a008b43b8a5476bdb3506e763acb4bd1b454
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc')
-rw-r--r-- | examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc b/examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc index 089ae9d3..33a95f70 100644 --- a/examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc +++ b/examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc @@ -55,19 +55,13 @@ \snippet weatherinfo/appmodel.h 0 \snippet weatherinfo/appmodel.h 1 - AppModel models the state of the entire application. At startup, the - application first begins by waiting for network connectivity. We do - this using the QNetworkConfigurationManager and QNetworkSession family - of C++ APIs. + AppModel models the state of the entire application. At startup, we + get the platform's default position source using + QGeoPositionInfo::createDefaultSource() \snippet weatherinfo/appmodel.cpp 0 \snippet weatherinfo/appmodel.cpp 1 - Once the network session is open, we proceed to get the platform's - default position source using QGeoPositionInfo::createDefaultSource() - - \snippet weatherinfo/appmodel.cpp 2 - If no default source is available, we take a static position and fetch weather for that. If, however, we do have a position source, we connect its positionUpdated() signal to a slot on the AppModel and call @@ -77,7 +71,7 @@ of the returned coordinate to retrieve the current "city" name for use in the weather lookup. - \snippet weatherinfo/appmodel.cpp 3 + \snippet weatherinfo/appmodel.cpp 2 To inform the UI about this process, the cityChanged() signal is emitted when a new city is used, and the weatherChanged() signal whenever a |