branch: Remove black box around GuiWorkarea? which is visible with Qt4.5.

see r29861.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30907 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-08-07 16:22:08 +00:00
parent 7fd27c3b81
commit 260d52f5a3

View File

@ -332,18 +332,13 @@ void GuiWorkArea::close()
void GuiWorkArea::setFullScreen(bool full_screen)
{
buffer_view_->setFullScreen(full_screen);
setFrameStyle(QFrame::NoFrame);
if (full_screen) {
setFrameStyle(QFrame::NoFrame);
if (lyxrc.full_screen_scrollbar)
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
} else {
#ifdef Q_WS_MACX
setFrameStyle(QFrame::NoFrame);
#else
setFrameStyle(QFrame::Box);
#endif
} else
setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
}
}