summaryrefslogtreecommitdiff
path: root/src/webwindow/webwindow.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/webwindow/webwindow.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/webwindow/webwindow.cpp')
-rw-r--r--src/webwindow/webwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/webwindow/webwindow.cpp b/src/webwindow/webwindow.cpp
index be2ba5da..35c6aed9 100644
--- a/src/webwindow/webwindow.cpp
+++ b/src/webwindow/webwindow.cpp
@@ -323,6 +323,12 @@ void WebWindow::setupActions()
a = new KAction(KIcon("tools-wizard"), i18n("Sync"), this); // FIXME sync icon!!
actionCollection()->addAction(QL1S("sync"), a);
connect(a, SIGNAL(triggered(bool)), SyncManager::self(), SLOT(showSettings()));
+
+ // web inspector
+ a = new KAction(KIcon("layer-visible-on"), i18n("&Inspect"), this);
+ a->setCheckable(true);
+ actionCollection()->addAction(QL1S("web_inspector"), a);
+ connect(a, SIGNAL(triggered(bool)), _tab, SLOT(toggleInspector(bool)));
}