summaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-04-02 02:01:43 +0200
committerAndrea Diamantini <adjam7@gmail.com>2009-04-02 02:01:43 +0200
commitf2372797940d2e2eea16592cbb855fd4ec828fca (patch)
tree6b70a8ef6cd0ee63d4d06c84096974ba45e204f3 /src/mainwindow.cpp
parentVarious fixes, including bookmarks bar (diff)
downloadrekonq-f2372797940d2e2eea16592cbb855fd4ec828fca.tar.xz
Added show/hide menubar action
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp
index 566a1b45..bae54d94 100644
--- a/src/mainwindow.cpp
+++ b/src/mainwindow.cpp
@@ -194,6 +194,7 @@ void MainWindow::setupActions()
KStandardAction::fullScreen(this, SLOT(slotViewFullScreen(bool)), this, actionCollection());
KStandardAction::home(this, SLOT(slotHome()), actionCollection());
KStandardAction::preferences(this, SLOT(slotPreferences()), actionCollection());
+ KStandardAction::showMenubar(this, SLOT(slotShowMenubar(bool)), actionCollection());
// WEB Actions (NO KStandardActions..)
KStandardAction::redisplay(m_view, SLOT(slotWebReload()), actionCollection());
@@ -806,3 +807,11 @@ void MainWindow::geometryChangeRequested(const QRect &geometry)
setGeometry(geometry);
}
+
+void MainWindow::slotShowMenubar(bool enable)
+{
+ if(enable)
+ menuBar()->show();
+ else
+ menuBar()->hide();
+} \ No newline at end of file