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
QObject::connect(closeBufferButton, SIGNAL(clicked()),
this, SLOT(closeCurrentBuffer()));
setCornerWidget(closeBufferButton, Qt::TopRightCorner);
+#endif
// setup drag'n'drop
QTabBar* tb = new DragTabBar;
{
tabBar()->setEnabled(show);
tabBar()->setVisible(show);
+#if QT_VERSION < 0x040500
closeBufferButton->setVisible(show);
+#endif
}