KStandardAction::showMenubar => showHideMenubar

svn path=/trunk/KDE/kdegraphics/okular/; revision=1195401
remotes/origin/KDE/4.6
Aurélien Gâteau 16 years ago
parent 0071c788ff
commit a60cff7901
  1. 5
      shell/shell.cpp
  2. 3
      shell/shell.h

@ -26,6 +26,7 @@
#include <kaction.h>
#include <kapplication.h>
#include <kcmdlineargs.h>
#include <kdualaction.h>
#include <kfiledialog.h>
#include <kpluginloader.h>
#include <kmessagebox.h>
@ -187,7 +188,7 @@ void Shell::setupActions()
setStandardToolBarMenuEnabled(true);
m_showMenuBarAction = KStandardAction::showMenubar( this, SLOT( slotShowMenubar() ), actionCollection());
m_showMenuBarAction = KStandardAction::showHideMenubar( this, SLOT( slotShowMenubar() ), actionCollection());
m_fullScreenAction = KStandardAction::fullScreen( this, SLOT( slotUpdateFullScreen() ), this,actionCollection() );
}
@ -280,7 +281,7 @@ void Shell::setFullScreen( bool useFullScreen )
void Shell::showEvent(QShowEvent *e)
{
m_showMenuBarAction->setChecked( menuBar()->isVisible() );
m_showMenuBarAction->setActive( menuBar()->isVisible() );
KParts::MainWindow::showEvent(e);
}

@ -19,6 +19,7 @@
#include <kparts/mainwindow.h>
class KCmdLineArgs;
class KDualAction;
class KRecentFilesAction;
class KToggleAction;
@ -99,7 +100,7 @@ private:
bool m_fileformatsscanned;
KAction* m_printAction;
KToggleAction* m_fullScreenAction;
KToggleAction* m_showMenuBarAction;
KDualAction* m_showMenuBarAction;
bool m_menuBarWasShown, m_toolBarWasShown;
KUrl m_openUrl;
};

Loading…
Cancel
Save