summaryrefslogtreecommitdiff
path: root/examples/positioning/weatherinfo/appmodel.h
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2017-03-20 17:26:47 +0300
committerAlexander Volkov <a.volkov@rusbitech.ru>2017-04-03 20:21:34 +0000
commit8bfc247bd4616fa7472ea1ae65ee72650d40c12f (patch)
tree5b8a93d3facf56e87f35582616df34d644a23bd0 /examples/positioning/weatherinfo/appmodel.h
parent22090b374f1f6e53a28188f91cca8b860c859555 (diff)
downloadqtlocation-8bfc247bd4616fa7472ea1ae65ee72650d40c12f.tar.gz
weatherinfo example: use lambdas instead of QSignalMapper
QSignalMapper is deprecated since Qt 5.10. Besides code looks clearer with lambdas. Change-Id: I7e4681e0d6b354cd8da9a4506dad917799688dc9 Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'examples/positioning/weatherinfo/appmodel.h')
-rw-r--r--examples/positioning/weatherinfo/appmodel.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/positioning/weatherinfo/appmodel.h b/examples/positioning/weatherinfo/appmodel.h
index 024f314f..9809284b 100644
--- a/examples/positioning/weatherinfo/appmodel.h
+++ b/examples/positioning/weatherinfo/appmodel.h
@@ -149,10 +149,9 @@ 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);
- void handleForecastNetworkData(QObject *networkReply);
+ void handleGeoNetworkData(QNetworkReply *networkReply);
+ void handleWeatherNetworkData(QNetworkReply *networkReply);
+ void handleForecastNetworkData(QNetworkReply *networkReply);
//! [3]
signals: