From 56ce6ba9792778e7d6fa1194b41e282633ff81c1 Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Tue, 1 Jul 2014 16:38:36 +0200 Subject: Expose internally QAuthenticator::setRealm This allows QtWebEngine to use the class API on top of the Chromium network stack. Change-Id: If595e30cfa6ecdc62cba8453d8f57ddccc1793d9 Reviewed-by: Peter Hartmann --- src/network/kernel/qauthenticator.cpp | 9 +++++++++ src/network/kernel/qauthenticator.h | 1 + 2 files changed, 10 insertions(+) (limited to 'src') diff --git a/src/network/kernel/qauthenticator.cpp b/src/network/kernel/qauthenticator.cpp index f7b956651f..ea935869fb 100644 --- a/src/network/kernel/qauthenticator.cpp +++ b/src/network/kernel/qauthenticator.cpp @@ -281,6 +281,15 @@ QString QAuthenticator::realm() const return d ? d->realm : QString(); } +/*! + \internal +*/ +void QAuthenticator::setRealm(const QString &realm) +{ + detach(); + d->realm = realm; +} + /*! \since 4.7 Returns the value related to option \a opt if it was set by the server. diff --git a/src/network/kernel/qauthenticator.h b/src/network/kernel/qauthenticator.h index 4d96104bc0..2f440d660d 100644 --- a/src/network/kernel/qauthenticator.h +++ b/src/network/kernel/qauthenticator.h @@ -70,6 +70,7 @@ public: void setPassword(const QString &password); QString realm() const; + void setRealm(const QString &realm); QVariant option(const QString &opt) const; QVariantHash options() const; -- cgit v1.2.3