diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-11-28 22:47:42 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-12-10 02:48:06 +0100 |
commit | 66edb6d66102e2ae7c0fd234f932b515fe101635 (patch) | |
tree | 8959057e403502301683c01b8aac6eb18e675464 /src/webtab/webtab.cpp | |
parent | Open focused link when launched from web app (diff) | |
download | rekonq-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.cpp | 9 |
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; +} |