Commit d6c313ae authored by Daniel Molkentin's avatar Daniel Molkentin
Browse files

welcome screen: use system proxy for rss if defined.

parent 5eb48701
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
#include <QtGui/QDesktopServices> #include <QtGui/QDesktopServices>
#include <QtGui/QLineEdit> #include <QtGui/QLineEdit>
#include <QtNetwork/QHttp> #include <QtNetwork/QHttp>
#include <QtNetwork/QNetworkProxyFactory>
#include <coreplugin/coreconstants.h> #include <coreplugin/coreconstants.h>
...@@ -119,6 +120,7 @@ RSSFetcher::RSSFetcher(int maxItems, QObject *parent) ...@@ -119,6 +120,7 @@ RSSFetcher::RSSFetcher(int maxItems, QObject *parent)
void RSSFetcher::fetch(const QUrl &url) void RSSFetcher::fetch(const QUrl &url)
{ {
m_http.setProxy(QNetworkProxyFactory::systemProxyForQuery(QNetworkProxyQuery(url)).first());
m_http.setHost(url.host()); m_http.setHost(url.host());
QString agentStr = QString("Qt-Creator/%1 (QHttp %2; %3; %4; %5 bit)") QString agentStr = QString("Qt-Creator/%1 (QHttp %2; %3; %4; %5 bit)")
.arg(Core::Constants::IDE_VERSION_LONG).arg(qVersion()) .arg(Core::Constants::IDE_VERSION_LONG).arg(qVersion())
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment