]> git.lyx.org Git - features.git/commitdiff
Resize bug correction. The tabbar hiding trick did not interact correctly with resize...
authorAbdelrazak Younes <younes@lyx.org>
Mon, 19 Nov 2007 11:21:45 +0000 (11:21 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 19 Nov 2007 11:21:45 +0000 (11:21 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21676 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiWorkArea.cpp

index 19998a732f667264463d682b68c7c48a73b3af8f..d68b4cc392c34986c598ebf17b9f51940e36273b 100644 (file)
@@ -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 *)));