summaryrefslogtreecommitdiff
path: root/src/webtab/webtab.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2012-11-28 22:47:42 +0100
committerAndrea Diamantini <adjam7@gmail.com>2012-12-10 02:48:06 +0100
commit66edb6d66102e2ae7c0fd234f932b515fe101635 (patch)
tree8959057e403502301683c01b8aac6eb18e675464 /src/webtab/webtab.cpp
parentOpen focused link when launched from web app (diff)
downloadrekonq-66edb6d66102e2ae7c0fd234f932b515fe101635.tar.xz
Restoring inspector, part 1
restored action and code to activate/deactivate it
Diffstat (limited to 'src/webtab/webtab.cpp')
-rw-r--r--src/webtab/webtab.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/webtab/webtab.cpp b/src/webtab/webtab.cpp
index 510177e6..5349d599 100644
--- a/src/webtab/webtab.cpp
+++ b/src/webtab/webtab.cpp
@@ -63,6 +63,8 @@
#include <QPrintDialog>
#include <QPrinter>
+#include <QWebSettings>
+
WebTab::WebTab(QWidget *parent)
: QWidget(parent)
@@ -420,3 +422,10 @@ void WebTab::webAppIconChanged()
{
setWindowIcon(IconManager::self()->iconForUrl(url()));
}
+
+
+void WebTab::toggleInspector(bool on)
+{
+ page()->settings()->setAttribute(QWebSettings::DeveloperExtrasEnabled, on);
+ kDebug() << "TOGGLED: " << on;
+}