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:
Vincent van Ravesteijn 2009-03-08 10:21:33 +00:00
parent 8bb4c7bfe9
commit 8e633570bf
2 changed files with 6 additions and 1 deletions

View File

@ -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);
}

View File

@ -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