mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
Resize bug correction. The tabbar hiding trick did not interact correctly with resize events :-(
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21676 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
c0a9d2587c
commit
7e9cf3cec1
@ -735,7 +735,6 @@ void GuiWorkArea::paintEvent(QPaintEvent * ev)
|
||||
void GuiWorkArea::updateScreen()
|
||||
{
|
||||
GuiPainter pain(&screen_);
|
||||
verticalScrollBar()->show();
|
||||
buffer_view_->draw(pain);
|
||||
}
|
||||
|
||||
@ -999,6 +998,7 @@ TabWorkArea::TabWorkArea(QWidget * parent) : QTabWidget(parent)
|
||||
|
||||
void TabWorkArea::showBar(bool show)
|
||||
{
|
||||
tabBar()->setEnabled(show);
|
||||
tabBar()->setVisible(show);
|
||||
}
|
||||
|
||||
@ -1060,8 +1060,6 @@ GuiWorkArea * TabWorkArea::addWorkArea(Buffer & buffer, GuiView & view)
|
||||
{
|
||||
GuiWorkArea * wa = new GuiWorkArea(buffer, view);
|
||||
wa->setUpdatesEnabled(false);
|
||||
// Hide tabbar if there's no tab (avoid a resize when hiding it again).
|
||||
showBar(count() > 0);
|
||||
addTab(wa, wa->windowTitle());
|
||||
QObject::connect(wa, SIGNAL(titleChanged(GuiWorkArea *)),
|
||||
this, SLOT(updateTabText(GuiWorkArea *)));
|
||||
|
Loading…
Reference in New Issue
Block a user