summaryrefslogtreecommitdiff
path: root/src/networkaccessmanager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/networkaccessmanager.h')
-rw-r--r--src/networkaccessmanager.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/networkaccessmanager.h b/src/networkaccessmanager.h
index ed4577e4..1eea9a0d 100644
--- a/src/networkaccessmanager.h
+++ b/src/networkaccessmanager.h
@@ -27,14 +27,22 @@
#ifndef NETWORKACCESSMANAGER_H
#define NETWORKACCESSMANAGER_H
-// KDE Includes
-#include <QtNetwork/QNetworkAccessManager>
+#include <kdeversion.h>
+
+#if KDE_IS_VERSION(4, 2, 70)
+ #include <kio/accessmanager.h>
+ using namespace KIO;
+ typedef AccessManager RekonqAccessManager;
+#else
+ #include <QtNetwork/QNetworkAccessManager>
+ typedef QNetworkAccessManager RekonqAccessManager;
+#endif
// Forward Declarations
class QNetworkDiskCache;
-class NetworkAccessManager : public QNetworkAccessManager
+class NetworkAccessManager : public RekonqAccessManager
{
Q_OBJECT