Remove the corner button too

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg150647.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29492 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-05-02 12:43:45 +00:00
parent 3da9c20456
commit e06984bc42
2 changed files with 6 additions and 0 deletions

View File

@ -1310,6 +1310,7 @@ TabWorkArea::TabWorkArea(QWidget * parent)
QObject::connect(this, SIGNAL(currentChanged(int)),
this, SLOT(on_currentTabChanged(int)));
#if QT_VERSION < 0x040500
closeBufferButton = new QToolButton(this);
closeBufferButton->setPalette(pal);
// FIXME: rename the icon to closebuffer.png
@ -1322,6 +1323,7 @@ TabWorkArea::TabWorkArea(QWidget * parent)
QObject::connect(closeBufferButton, SIGNAL(clicked()),
this, SLOT(closeCurrentBuffer()));
setCornerWidget(closeBufferButton, Qt::TopRightCorner);
#endif
// setup drag'n'drop
QTabBar* tb = new DragTabBar;
@ -1359,7 +1361,9 @@ void TabWorkArea::showBar(bool show)
{
tabBar()->setEnabled(show);
tabBar()->setVisible(show);
#if QT_VERSION < 0x040500
closeBufferButton->setVisible(show);
#endif
}

View File

@ -332,8 +332,10 @@ private Q_SLOTS:
private:
///
int clicked_tab_;
#if QT_VERSION < 0x040500
///
QToolButton * closeBufferButton;
#endif
}; // TabWorkArea