diff options
author | Kai Koehne <kai.koehne@qt.io> | 2016-10-21 11:46:49 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@qt.io> | 2016-11-02 08:04:14 +0000 |
commit | 71166288cb71b58eb7a84b70e92a10396cdf9ee4 (patch) | |
tree | 3f4441f151ed35ecab10bc6d8f73a94525b83b15 /src/network/kernel/qnetworkproxy.h | |
parent | c12f42e91b146109cc9ee5d050928672776ca1ee (diff) |
Add QNetworkProxy::usesSystemConfiguration() accessor
Allow to check programmatically whether using the system proxy settings
is enabled. To implement this the QSystemConfigurationProxyFactory is
replaced by an explicit boolean in QGlobalNetworkProxy.
Change-Id: I52231b4ffc890b085bcd1739acf93c97bdb18eb5
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Diffstat (limited to 'src/network/kernel/qnetworkproxy.h')
-rw-r--r-- | src/network/kernel/qnetworkproxy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/kernel/qnetworkproxy.h b/src/network/kernel/qnetworkproxy.h index fc919a24a6..8fcb7e33cf 100644 --- a/src/network/kernel/qnetworkproxy.h +++ b/src/network/kernel/qnetworkproxy.h @@ -213,6 +213,7 @@ public: virtual QList<QNetworkProxy> queryProxy(const QNetworkProxyQuery &query = QNetworkProxyQuery()) = 0; + static bool usesSystemConfiguration(); static void setUseSystemConfiguration(bool enable); static void setApplicationProxyFactory(QNetworkProxyFactory *factory); static QList<QNetworkProxy> proxyForQuery(const QNetworkProxyQuery &query); |