Revert "KStandardAction::showMenubar => showHideMenubar"

Shouldn't have pushed this, sorry.

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

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

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

Loading…
Cancel
Save