From 42cfac2eb3446e8677a6488e3a7f4022f3222006 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Fri, 24 Jul 2009 16:00:58 +0200 Subject: Rekonq tools menu (waiting for clear data action..) --- src/lineedit.cpp | 1 + src/mainwindow.cpp | 16 +++++++++++++--- 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); } -- cgit v1.2.1