From e06984bc42808d358620fc910de449f51e728814 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Sat, 2 May 2009 12:43:45 +0000 Subject: [PATCH] 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 --- src/frontends/qt4/GuiWorkArea.cpp | 4 ++++ src/frontends/qt4/GuiWorkArea.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/frontends/qt4/GuiWorkArea.cpp b/src/frontends/qt4/GuiWorkArea.cpp index 37c9db7e0d..5fa04fb049 100644 --- a/src/frontends/qt4/GuiWorkArea.cpp +++ b/src/frontends/qt4/GuiWorkArea.cpp @@ -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 } diff --git a/src/frontends/qt4/GuiWorkArea.h b/src/frontends/qt4/GuiWorkArea.h index 3dc7e6c907..0429458a45 100644 --- a/src/frontends/qt4/GuiWorkArea.h +++ b/src/frontends/qt4/GuiWorkArea.h @@ -332,8 +332,10 @@ private Q_SLOTS: private: /// int clicked_tab_; +#if QT_VERSION < 0x040500 /// QToolButton * closeBufferButton; +#endif }; // TabWorkArea -- 2.39.2