From 71166288cb71b58eb7a84b70e92a10396cdf9ee4 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Fri, 21 Oct 2016 11:46:49 +0200 Subject: 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 --- src/network/kernel/qnetworkproxy.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/network/kernel/qnetworkproxy.h') 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 queryProxy(const QNetworkProxyQuery &query = QNetworkProxyQuery()) = 0; + static bool usesSystemConfiguration(); static void setUseSystemConfiguration(bool enable); static void setApplicationProxyFactory(QNetworkProxyFactory *factory); static QList proxyForQuery(const QNetworkProxyQuery &query); -- cgit v1.2.3