From d2283cdcf7f07f6c069d383fcac1e6d50144c8ab Mon Sep 17 00:00:00 2001 From: Flavio Tordini Date: Thu, 3 Sep 2009 01:17:46 +0200 Subject: [PATCH] Hide menubar in compact mode (but not on the Mac) --- src/MainWindow.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 89a1690..a7f19c3 100755 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -570,6 +570,11 @@ void MainWindow::compactView(bool enable) { mainToolBar->setVisible(!enable); statusBar()->setVisible(!enable); + +#ifndef Q_WS_MAC + menuBar()->setVisible(!enable); +#endif + // ensure focus does not end up to the search box // as it would steal the Space shortcut toolbarSearch->setEnabled(!enable); -- 2.39.5