diff options
author | Alex Blasche <alexander.blasche@digia.com> | 2014-08-12 16:18:53 +0200 |
---|---|---|
committer | Alex Blasche <alexander.blasche@digia.com> | 2014-08-14 09:49:38 +0200 |
commit | a36d9e67e3b8168cb4d1eb76eda96ebb8242fd20 (patch) | |
tree | 1b97b986e154c150320f0109d218a57077172938 /examples/positioning/weatherinfo/appmodel.h | |
parent | 11fdb66dc5fe4822dacaca0b1afd0346446b5143 (diff) |
Don't hang weatherinfo if position source has an error.
We continue with the simulation mode.
Task-number: QTBUG-40702
Change-Id: I130b0080a198a218803986fb7ff06fdd0b83186a
Reviewed-by: Aaron McCarthy <mccarthy.aaron@gmail.com>
Diffstat (limited to 'examples/positioning/weatherinfo/appmodel.h')
-rw-r--r-- | examples/positioning/weatherinfo/appmodel.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/positioning/weatherinfo/appmodel.h b/examples/positioning/weatherinfo/appmodel.h index e0d32148..16297236 100644 --- a/examples/positioning/weatherinfo/appmodel.h +++ b/examples/positioning/weatherinfo/appmodel.h @@ -46,7 +46,7 @@ #include <QtNetwork/QNetworkReply> #include <QtQml/QQmlListProperty> -#include <qgeopositioninfo.h> +#include <QtPositioning/QGeoPositionInfoSource> //! [0] class WeatherData : public QObject { @@ -146,6 +146,7 @@ public slots: private slots: void networkSessionOpened(); void positionUpdated(QGeoPositionInfo gpsPos); + void positionError(QGeoPositionInfoSource::Error e); // these would have QNetworkReply* params but for the signalmapper void handleGeoNetworkData(QObject *networkReply); void handleWeatherNetworkData(QObject *networkReply); |