summaryrefslogtreecommitdiff
path: root/src/icons/icondownloader.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-06-10 11:50:45 +0200
committerAndrea Diamantini <adjam7@gmail.com>2013-06-10 11:54:28 +0200
commit7330968510ffd83ab208ae0ffa8febe49c4dbcdb (patch)
treea5cd146787d922e66484b3887f93b8010b8aa698 /src/icons/icondownloader.cpp
parenti18n: toEncoded -> toString (diff)
downloadrekonq-7330968510ffd83ab208ae0ffa8febe49c4dbcdb.tar.xz
Link custom rekonq QNAM to KDE proxy settings
This is a first attempt to link our needed QNAM to KDE proxy settings. It will try to fix proxy problems when used. Oh... I also added some new error strings in case of proxy problems :) CCBUG: 304378 CCBUG: 315598
Diffstat (limited to 'src/icons/icondownloader.cpp')
-rw-r--r--src/icons/icondownloader.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/icons/icondownloader.cpp b/src/icons/icondownloader.cpp
index 6d1f3a5e..b1d813a3 100644
--- a/src/icons/icondownloader.cpp
+++ b/src/icons/icondownloader.cpp
@@ -28,8 +28,10 @@
#include "icondownloader.h"
#include "icondownloader.moc"
+// Local Includes
+#include "knetworkaccessmanager.h"
+
// Qt Includes
-#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QFile>
@@ -41,7 +43,7 @@ IconDownloader::IconDownloader(const KUrl &srcUrl, const KUrl &destUrl, QObject
, m_srcUrl(srcUrl)
, m_destUrl(destUrl)
{
- QNetworkAccessManager *manager = new QNetworkAccessManager(this);
+ KNetworkAccessManager *manager = new KNetworkAccessManager(this);
connect(manager, SIGNAL(finished(QNetworkReply*)), this, SLOT(replyFinished(QNetworkReply*)));
manager->get(QNetworkRequest(srcUrl));
}