summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginepage.cpp
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-07-01 16:39:55 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-08-01 15:40:40 +0200
commitabba8dd0f2d94e67e211aaab7c91d63c07e8497c (patch)
treea562a09bc3766a8318a8235722ff75ab91fdd288 /src/webenginewidgets/api/qwebenginepage.cpp
parent8bfc63d456c4524cadae0efb685234c80729775e (diff)
Don't use QAuthenticator private API
QAuthenticator::setRealm has been added to QtNetwork 5.4. Change-Id: I7eb503956d72a96e1f5030896cdf9adb7d4030cb Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage.cpp')
-rw-r--r--src/webenginewidgets/api/qwebenginepage.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage.cpp b/src/webenginewidgets/api/qwebenginepage.cpp
index 430fa30a2..fd1f54834 100644
--- a/src/webenginewidgets/api/qwebenginepage.cpp
+++ b/src/webenginewidgets/api/qwebenginepage.cpp
@@ -33,6 +33,7 @@
#include <QAction>
#include <QApplication>
+#include <QAuthenticator>
#include <QClipboard>
#include <QFileDialog>
#include <QIcon>
@@ -42,7 +43,6 @@
#include <QMessageBox>
#include <QStandardPaths>
#include <QUrl>
-#include <private/qauthenticator_p.h>
QT_BEGIN_NAMESPACE
@@ -313,9 +313,7 @@ void QWebEnginePagePrivate::authenticationRequired(const QUrl &requestUrl, const
{
Q_Q(QWebEnginePage);
QAuthenticator networkAuth;
- // Detach to trigger the creation of its QAuthenticatorPrivate.
- networkAuth.detach();
- QAuthenticatorPrivate::getPrivate(networkAuth)->realm = realm;
+ networkAuth.setRealm(realm);
if (isProxy)
Q_EMIT q->proxyAuthenticationRequired(requestUrl, &networkAuth, challengingHost);