summaryrefslogtreecommitdiff
path: root/examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc')
-rw-r--r--examples/positioning/weatherinfo/doc/src/weatherinfo.qdoc14
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