summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-07-24 16:00:58 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-07-24 16:00:58 +0200
commit42cfac2eb3446e8677a6488e3a7f4022f3222006 (patch)
tree82ce07965ed4eba9015562e2bec76aec8bf538fd
parentPano "create new windowd" bug fix and other little web classes (diff)
downloadrekonq-42cfac2eb3446e8677a6488e3a7f4022f3222006.tar.xz
Rekonq tools menu
(waiting for clear data action..)
-rw-r--r--src/lineedit.cpp1
-rw-r--r--src/mainwindow.cpp16
2 files changed, 14 insertions, 3 deletions
diff --git a/src/lineedit.cpp b/src/lineedit.cpp
index 6d3d3ef4..fd43346d 100644
--- a/src/lineedit.cpp
+++ b/src/lineedit.cpp
@@ -79,6 +79,7 @@ void LineEdit::focusOutEvent(QFocusEvent *event)
deselect();
}
+
void LineEdit::mouseDoubleClickEvent(QMouseEvent *)
{
selectAll();
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 09c36263..b2e5106c 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -331,17 +331,27 @@ void MainWindow::setupTools()
toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::SaveAs)));
toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::Print)));
toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::Find)));
+
toolsMenu->addSeparator();
+
+ KActionMenu *webMenu = new KActionMenu(KIcon("applications-development-web"), i18n("Web Development"), this);
+ webMenu->addAction(actionByName(QLatin1String("web_inspector")));
+ webMenu->addAction(actionByName(QLatin1String("page_source")));
+ toolsMenu->addAction(webMenu);
+
toolsMenu->addAction(actionByName(QLatin1String("private_browsing")));
- toolsMenu->addAction(actionByName(QLatin1String("web_inspector")));
- toolsMenu->addAction(actionByName(QLatin1String("page_source")));
+
toolsMenu->addSeparator();
- toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::ShowMenubar)));
+
toolsMenu->addAction(actionByName(QLatin1String("show_history_panel")));
toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::FullScreen)));
+
toolsMenu->addSeparator();
+
+ toolsMenu->addAction(KStandardAction::helpContents(this, SLOT(appHelpActivated()), actionCollection()));
toolsMenu->addAction(actionByName(KStandardAction::name(KStandardAction::Preferences)));
+ // adding rekonq_tools to rekonq actionCollection
actionCollection()->addAction(QLatin1String("rekonq_tools"), toolsMenu);
}