diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-02-24 16:03:17 +0000 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-02-25 16:22:01 +0000 |
commit | ec3001c3490b14de3b242dce6af97ec519433305 (patch) | |
tree | 5f2e81c91eee4e506440d6d87878df556b0a5fea /examples/positioning | |
parent | d983c7edac94b5e397b781b3f7a9b119d1996318 (diff) | |
download | qtlocation-ec3001c3490b14de3b242dce6af97ec519433305.tar.gz |
Revert "qtlocation: remove uses of the deprecated member-function"
This reverts commit b482674e51c097fccffa1e1cc32b4843ad393894.
Reason for revert: naming in QProcess is considered to be the correct one.
Change-Id: I6722adfc06b351c76fb432628a678c4ce887d594
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/positioning')
-rw-r--r-- | examples/positioning/weatherinfo/appmodel.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/positioning/weatherinfo/appmodel.cpp b/examples/positioning/weatherinfo/appmodel.cpp index bace7510..6d31d5ba 100644 --- a/examples/positioning/weatherinfo/appmodel.cpp +++ b/examples/positioning/weatherinfo/appmodel.cpp @@ -327,7 +327,7 @@ void AppModel::handleGeoNetworkData(QNetworkReply *networkReply) return; } - if (!networkReply->networkError()) { + if (!networkReply->error()) { d->nErrors = 0; if (!d->throttle.isValid()) d->throttle.start(); @@ -383,7 +383,7 @@ void AppModel::handleWeatherNetworkData(QNetworkReply *networkReply) if (!networkReply) return; - if (!networkReply->networkError()) { + if (!networkReply->error()) { foreach (WeatherData *inf, d->forecast) delete inf; d->forecast.clear(); @@ -435,7 +435,7 @@ void AppModel::handleForecastNetworkData(QNetworkReply *networkReply) if (!networkReply) return; - if (!networkReply->networkError()) { + if (!networkReply->error()) { QJsonDocument document = QJsonDocument::fromJson(networkReply->readAll()); QJsonObject jo; |