summaryrefslogtreecommitdiff
path: root/src/webwindow
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
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')
-rw-r--r--src/webwindow/webwindow.cpp6
-rw-r--r--src/webwindow/webwindow.h2
2 files changed, 7 insertions, 1 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)));
}
diff --git a/src/webwindow/webwindow.h b/src/webwindow/webwindow.h
index c37704d5..ce71e7b9 100644
--- a/src/webwindow/webwindow.h
+++ b/src/webwindow/webwindow.h
@@ -112,7 +112,7 @@ private Q_SLOTS:
void updateHistoryActions();
void openNewWindow();
-
+
/**
* Notifies a message in a popup
*/