fullscreen tweaking.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24961 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-05-27 13:30:40 +00:00
parent 57fb699944
commit af442b7369

View File

@ -2013,10 +2013,9 @@ void GuiView::toggleFullScreen()
setContentsMargins(0, 0, 0, 0);
#endif
setWindowState(windowState() ^ Qt::WindowFullScreen);
restoreLayout();
menuBar()->show();
statusBar()->show();
if (lyxrc.full_screen_toolbars)
restoreLayout();
} else {
for (int i = 0; i != d.splitter_->count(); ++i)
d.tabWorkArea(i)->setFullScreen(true);