mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
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:
parent
7fed0eced1
commit
8a20f27f6e
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user