Hide 'Show/Hide Menu Bar' item when a MacOS-style menu bar (top-level) is used.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=691950
wilder-portage
Robert Knight 19 years ago
parent d30833dac7
commit 8e56b074af
  1. 12
      src/MainWindow.cpp

@ -209,17 +209,17 @@ void MainWindow::setupActions()
connect( _toggleMenuBarAction , SIGNAL(toggled(bool)) , menuBar() , SLOT(setVisible(bool)) );
collection->addAction("show-menubar",_toggleMenuBarAction);
// Hide the Show/Hide menubar item if the menu bar is a MacOS-style menu bar
if ( menuBar()->isTopLevelMenu() )
_toggleMenuBarAction->setVisible(false);
// Full Screen
KToggleFullScreenAction* fullScreenAction = new KToggleFullScreenAction(this);
fullScreenAction->setWindow(this);
fullScreenAction->setShortcut( Qt::CTRL + Qt::SHIFT + Qt::Key_F11 );
collection->addAction("view-full-screen",fullScreenAction);
connect( fullScreenAction , SIGNAL(toggled(bool)) , this , SLOT(viewFullScreen(bool)) );
//TODO - Implmement this correctly
//
//QAction* mergeAction = collection->addAction("merge-windows");
//mergeAction->setText( i18n("&Merge Windows") );
//connect( mergeAction , SIGNAL(triggered()) , this , SLOT(mergeWindows()) );
// Settings Menu
KStandardAction::configureNotifications( 0 , 0 , collection );
KStandardAction::keyBindings( this , SLOT(showShortcutsDialog()) , collection );

Loading…
Cancel
Save