diff options
author | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-02-24 17:26:41 +0000 |
---|---|---|
committer | Timur Pocheptsov <timur.pocheptsov@qt.io> | 2020-02-24 17:47:39 +0000 |
commit | 8dcd51b63d26fcac466d80dc90942ae2cf3b4f4e (patch) | |
tree | 879d3b3dfede4954d4cf7770cf55d88329120dcd /src/qml/qml/qqmlxmlhttprequest.cpp | |
parent | 033154229442e19bc675ab69015d460fe3aee775 (diff) |
Revert "Replace call to deprecated QNetworkReply::error method"
This reverts commit e5a4ba4a5573ace08def218b985dde83de0805fb.
Reason for revert: it was decided to re-name a signal instead, like it's done in QProcess.
Change-Id: I0f393c482d8be506430258d7afd4a0056611831f
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlxmlhttprequest.cpp')
-rw-r--r-- | src/qml/qml/qqmlxmlhttprequest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlxmlhttprequest.cpp b/src/qml/qml/qqmlxmlhttprequest.cpp index c820499703..2afbdb616b 100644 --- a/src/qml/qml/qqmlxmlhttprequest.cpp +++ b/src/qml/qml/qqmlxmlhttprequest.cpp @@ -1291,7 +1291,7 @@ void QQmlXMLHttpRequest::requestFromUrl(const QUrl &url) if (m_network->bytesAvailable() > 0) readyRead(); - QNetworkReply::NetworkError networkError = m_network->networkError(); + QNetworkReply::NetworkError networkError = m_network->error(); if (networkError != QNetworkReply::NoError) { error(networkError); } else { |