mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
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:
parent
3da9c20456
commit
e06984bc42
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
@ -332,8 +332,10 @@ private Q_SLOTS:
|
||||
private:
|
||||
///
|
||||
int clicked_tab_;
|
||||
#if QT_VERSION < 0x040500
|
||||
///
|
||||
QToolButton * closeBufferButton;
|
||||
#endif
|
||||
}; // TabWorkArea
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user