summaryrefslogtreecommitdiffstats
path: root/examples/network/http
diff options
context:
space:
mode:
authorTimur Pocheptsov <timur.pocheptsov@qt.io>2020-01-10 14:15:35 +0100
committerTimur Pocheptsov <timur.pocheptsov@qt.io>2020-01-13 15:50:47 +0100
commitccb2cb84f535b0bfce19a95d7f3a36803480cae8 (patch)
tree11bdd158aaf56f1c18fcb92f8f37d9e5f4ef066b /examples/network/http
parent46b433b971999610dcc007a6f57ef4045d159548 (diff)
QNetworkReply: deprecate the 'error' getter
To disambiguate &QNetworkReply::error expression. [ChangeLog][Deprecation Notice] QNetworkReply::error() (the getter) was deprecated; superseded by networkError(). Task-number: QTBUG-80369 Change-Id: I545f963788bce0800c9e0f0c94d5f1029946effe Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'examples/network/http')
-rw-r--r--examples/network/http/httpwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp
index c7bf0c0dff..d0eb2529cd 100644
--- a/examples/network/http/httpwindow.cpp
+++ b/examples/network/http/httpwindow.cpp
@@ -249,7 +249,7 @@ void HttpWindow::httpFinished()
return;
}
- if (reply->error()) {
+ if (reply->networkError()) {
QFile::remove(fi.absoluteFilePath());
statusLabel->setText(tr("Download failed:\n%1.").arg(reply->errorString()));
downloadButton->setEnabled(true);