diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-12-15 17:01:04 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-12-15 17:01:04 +0100 |
commit | 1be07ceabb90b9ca510dd6ff3f2f3bdb6e448543 (patch) | |
tree | 8897b7fd209889561a5047f4fdc9edd95f61ee38 /src/webinspectordock.cpp | |
parent | Merge commit 'refs/merge-requests/71' of git://gitorious.org/rekonq/mainline ... (diff) | |
parent | factor out WebTab class from WebView (diff) | |
download | rekonq-1be07ceabb90b9ca510dd6ff3f2f3bdb6e448543.tar.xz |
I tried a bit, but this is not working pretty well :(
We are actually creating two widget for request.
I'll merge it anyway to let you fix it :)
Merge commit 'refs/merge-requests/72' of git://gitorious.org/rekonq/mainline into m72
Conflicts:
src/mainview.cpp
src/webview.cpp
Diffstat (limited to 'src/webinspectordock.cpp')
-rw-r--r-- | src/webinspectordock.cpp | 7 |
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); } |