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

Now also when returning from full-screen mode.

see r28747.




git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29861 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Vincent van Ravesteijn 2009-05-26 22:37:14 +00:00
parent fe82ab8c5d
commit 25f946f19d

View File

@ -363,18 +363,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);
}
}
@ -1463,9 +1458,8 @@ bool TabWorkArea::removeWorkArea(GuiWorkArea * work_area)
else
// Show tabbar only if there's more than one tab.
showBar(count() > 1);
} else {
} else
lastWorkAreaRemoved();
}
updateTabTexts();