summaryrefslogtreecommitdiff
path: root/src/webpage.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-05-05 15:46:28 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-05-05 15:46:28 +0200
commit1830a45a0e1ae8f257667899a6c34f32545dbd62 (patch)
treec5a94ad37b50c484c7434e6dde01b1ece43672e4 /src/webpage.cpp
parentif the url of an item have the same domaine name as the typed string, it is m... (diff)
downloadrekonq-1830a45a0e1ae8f257667899a6c34f32545dbd62.tar.xz
This commit implements another dockwidget for rekonq, containing a
network analyzer. Its code is based on previous implementation of Web Inspector Dock and on Richmoore example about QNAM proxy. Many thanks for :)
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r--src/webpage.cpp15
1 files changed, 13 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 99a1a6d2..8d71ab5a 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -101,6 +101,7 @@ static bool domainSchemeMatch(const QUrl& u1, const QUrl& u2)
WebPage::WebPage(QWidget *parent)
: KWebPage(parent, KWalletIntegration)
+ , _networkAnalyzer(false)
{
// ----- handling unsupported content...
setForwardUnsupportedContent(true);
@@ -576,8 +577,6 @@ void WebPage::showSSLInfo(QPoint)
}
-
-
void WebPage::updateImage(bool ok)
{
if (ok)
@@ -586,3 +585,15 @@ void WebPage::updateImage(bool ok)
p.snapFinished();
}
}
+
+
+bool WebPage::hasNetworkAnalyzerEnabled() const
+{
+ return _networkAnalyzer;
+}
+
+
+void WebPage::enableNetworkAnalyzer(bool b)
+{
+ _networkAnalyzer = b;
+}