summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-11-30 10:26:43 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-11-30 10:26:43 +0100
commit88bde6fd1e73f30a9bdb1da5fd4bd24aeb84266b (patch)
treed002a585d5a889c5e5df8ea8ab83ec8a04e2e59a /src/webpage.cpp
parentRestored QWebElementCollection (diff)
downloadrekonq-88bde6fd1e73f30a9bdb1da5fd4bd24aeb84266b.tar.xz
Porting rekonq to last Qt/KDE API
adblock (KDE one) fix #1
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index edb7902f..0f214b6d 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -41,6 +41,7 @@
#include "mainview.h"
#include "webview.h"
#include "webpluginfactory.h"
+#include "networkaccessmanager.h"
// KDE Includes
#include <KStandardDirs>
@@ -65,14 +66,16 @@
#include <QtGui/QKeyEvent>
-WebPage::WebPage(QObject *parent, qlonglong windowId)
- : KWebPage(parent, windowId)
+WebPage::WebPage(QObject *parent)
+ : KWebPage(parent, KWalletIntegration)
, m_keyboardModifiers(Qt::NoModifier)
, m_pressedButtons(Qt::NoButton)
{
+ // rekonq own classes integration
+ setNetworkAccessManager(new NetworkAccessManager(this));
setPluginFactory(new WebPluginFactory(this));
- setForwardUnsupportedContent(true);
+// FIXME setForwardUnsupportedContent(true);
connect(networkAccessManager(), SIGNAL(finished(QNetworkReply*)), this, SLOT(manageNetworkErrors(QNetworkReply*)));