diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-11-27 15:16:57 +0100 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2014-12-05 08:51:02 +0100 |
commit | aac92c84d479078f8bfc048710c147bbd288e174 (patch) | |
tree | a836aead7681447b4ba09d36f30fba0552333632 /src/app | |
parent | cd76a574b1d31b1ed6454d0e2588af10a13a3f5f (diff) | |
download | qt-creator-aac92c84d479078f8bfc048710c147bbd288e174.tar.gz |
Use systemProxyForQuery() everywhere
For generic Unix, Qt automatically picks up http_proxy since
Qt 4.8 (commit 2ec929a2b). It also picks up e.g. https_proxy etc,
so it's better to rely on it.
On OS X we want to use the system proxy settings, that allow
also more advanced configuration like different proxies for
different services, passwords ...
Change-Id: I72de5e576e4d34d87f4c787bb597db0ca59a70e1
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/main.cpp | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/app/main.cpp b/src/app/main.cpp index da67b6f04a..301ec9a878 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -393,20 +393,8 @@ int main(int argc, char **argv) } // Make sure we honor the system's proxy settings -#if defined(Q_OS_UNIX) - QUrl proxyUrl(QString::fromLatin1(qgetenv("http_proxy"))); - if (proxyUrl.isValid()) { - QNetworkProxy proxy(QNetworkProxy::HttpProxy, proxyUrl.host(), - proxyUrl.port(), proxyUrl.userName(), proxyUrl.password()); - QNetworkProxy::setApplicationProxy(proxy); -# if defined(Q_OS_MAC) // unix and mac - } else { - QNetworkProxyFactory::setUseSystemConfiguration(true); -# endif - } -#else // windows QNetworkProxyFactory::setUseSystemConfiguration(true); -#endif + // Load const QStringList pluginPaths = getPluginPaths() + customPluginPaths; PluginManager::setPluginPaths(pluginPaths); |