summaryrefslogtreecommitdiff
path: root/src/webinspectordock.cpp
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-14 17:43:05 +0100
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-14 21:55:50 +0100
commit412e9b019ad5c868dd0c5573bf185a32cca31b7d (patch)
tree1a1ee0cddabefdd62e2bef39eef47e52d222e7f9 /src/webinspectordock.cpp
parentrekonq 0.3.21 (diff)
downloadrekonq-412e9b019ad5c868dd0c5573bf185a32cca31b7d.tar.xz
factor out WebTab class from WebView
* it basically represents a tab in rekonq * everything that happens within one tab should go here (wallet bar, find bar?)
Diffstat (limited to 'src/webinspectordock.cpp')
-rw-r--r--src/webinspectordock.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/webinspectordock.cpp b/src/webinspectordock.cpp
index f91df31a..2c17a607 100644
--- a/src/webinspectordock.cpp
+++ b/src/webinspectordock.cpp
@@ -28,6 +28,7 @@
#include "webinspectordock.moc"
// Local Includes
+#include "webtab.h"
#include "webview.h"
#include "webpage.h"
@@ -64,20 +65,20 @@ void WebInspectorDock::toggle(bool enable)
mainWindow()->actionByName("web_inspector")->setChecked(enable);
if (enable)
{
- mainWindow()->currentTab()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
+ mainWindow()->currentTab()->view()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, true);
findChild<QWebInspector *>()->setPage(mainWindow()->currentTab()->page());
show();
}
else
{
hide();
- mainWindow()->currentTab()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, false);
+ mainWindow()->currentTab()->view()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, false);
}
}
void WebInspectorDock::changeCurrentPage()
{
- bool enable = mainWindow()->currentTab()->settings()->testAttribute(QWebSettings::DeveloperExtrasEnabled);
+ bool enable = mainWindow()->currentTab()->view()->settings()->testAttribute(QWebSettings::DeveloperExtrasEnabled);
toggle(enable);
}