summaryrefslogtreecommitdiff
path: root/src/webtab/webtab.cpp
diff options
context:
space:
mode:
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;
+}