Fullscreen: correct restoring of window state.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24064 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2008-03-30 22:27:17 +00:00
parent 7fed0eced1
commit 8a20f27f6e

View File

@ -1960,7 +1960,7 @@ void GuiView::lfunUiToggle(FuncRequest const & cmd)
#if QT_VERSION >= 0x040300
setContentsMargins(0, 0, 0, 0);
#endif
showNormal();
setWindowState(windowState() ^ Qt::WindowFullScreen);
menuBar()->show();
statusBar()->show();
} else {
@ -1969,7 +1969,7 @@ void GuiView::lfunUiToggle(FuncRequest const & cmd)
#if QT_VERSION >= 0x040300
setContentsMargins(-2, -2, -2, -2);
#endif
showFullScreen();
setWindowState(windowState() ^ Qt::WindowFullScreen);
statusBar()->hide();
menuBar()->hide();
}