mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Fix bug 5357: Close tab possible without close tab icon
http://bugzilla.lyx.org/show_bug.cgi?id=5357 git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28727 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8bb4c7bfe9
commit
8e633570bf
@ -1320,7 +1320,7 @@ TabWorkArea::TabWorkArea(QWidget * parent)
|
||||
QObject::connect(this, SIGNAL(currentChanged(int)),
|
||||
this, SLOT(on_currentTabChanged(int)));
|
||||
|
||||
QToolButton * closeBufferButton = new QToolButton(this);
|
||||
closeBufferButton = new QToolButton(this);
|
||||
closeBufferButton->setPalette(pal);
|
||||
// FIXME: rename the icon to closebuffer.png
|
||||
closeBufferButton->setIcon(QIcon(":/images/closetab.png"));
|
||||
@ -1365,6 +1365,7 @@ void TabWorkArea::showBar(bool show)
|
||||
{
|
||||
tabBar()->setEnabled(show);
|
||||
tabBar()->setVisible(show);
|
||||
closeBufferButton->setVisible(show);
|
||||
}
|
||||
|
||||
|
||||
|
@ -35,6 +35,7 @@ class QDropEvent;
|
||||
class QKeyEvent;
|
||||
class QWheelEvent;
|
||||
class QPaintEvent;
|
||||
class QToolButton;
|
||||
class QWidget;
|
||||
|
||||
#ifdef CursorShape
|
||||
@ -328,7 +329,10 @@ private Q_SLOTS:
|
||||
void moveTab(int fromIndex, int toIndex);
|
||||
|
||||
private:
|
||||
///
|
||||
int clicked_tab_;
|
||||
///
|
||||
QToolButton * closeBufferButton;
|
||||
}; // TabWorkArea
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user