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) void GuiWorkArea::setFullScreen(bool full_screen)
{ {
buffer_view_->setFullScreen(full_screen); buffer_view_->setFullScreen(full_screen);
setFrameStyle(QFrame::NoFrame);
if (full_screen) { if (full_screen) {
setFrameStyle(QFrame::NoFrame); setFrameStyle(QFrame::NoFrame);
if (lyxrc.full_screen_scrollbar) if (lyxrc.full_screen_scrollbar)
setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff); setVerticalScrollBarPolicy(Qt::ScrollBarAlwaysOff);
} else { } else
#ifdef Q_WS_MACX
setFrameStyle(QFrame::NoFrame);
#else
setFrameStyle(QFrame::Box);
#endif
setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded); setVerticalScrollBarPolicy(Qt::ScrollBarAsNeeded);
}
} }
@ -1463,9 +1458,8 @@ bool TabWorkArea::removeWorkArea(GuiWorkArea * work_area)
else else
// Show tabbar only if there's more than one tab. // Show tabbar only if there's more than one tab.
showBar(count() > 1); showBar(count() > 1);
} else { } else
lastWorkAreaRemoved(); lastWorkAreaRemoved();
}
updateTabTexts(); updateTabTexts();