summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}