summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2020-02-24 16:04:12 +0000
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2020-02-24 16:17:18 +0000
commitea11d049ab497bbaa78a2cecbc0f028433847058 (patch)
treed39453d484b49a4bac7e4d2b9ae96b0d7cf899f9 /doc/src/snippets
parenta47e72bd0d8841e95eb54e5bb2745263dc347b67 (diff)
Revert "Use networkError instead of error"
This reverts commit 58c17ea6a79d682da976815901830839ddc9cec0. Naming in QProcess is considered to be the correct one and the rule. Change-Id: I79566d5f601dbe1975ed8bcac19874a27fa83b21 Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'doc/src/snippets')
-rw-r--r--doc/src/snippets/webkit/imageanalyzer/imageanalyzer.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/src/snippets/webkit/imageanalyzer/imageanalyzer.cpp b/doc/src/snippets/webkit/imageanalyzer/imageanalyzer.cpp
index 508f91390..2b42c206b 100644
--- a/doc/src/snippets/webkit/imageanalyzer/imageanalyzer.cpp
+++ b/doc/src/snippets/webkit/imageanalyzer/imageanalyzer.cpp
@@ -168,8 +168,8 @@ void ImageAnalyzer::fetchURLs()
void ImageAnalyzer::handleReply(QNetworkReply * pReply)
{
m_outstandingFetches--;
- if (pReply->networkError()) {
- qDebug() << "Error code" << pReply->networkError();
+ if (pReply->error()) {
+ qDebug() << "Error code" << pReply->error();
qDebug() << "Http code" << pReply->attribute(QNetworkRequest::HttpStatusCodeAttribute);
return;
}