fixed: QTabWidget::setTabsClosable() is available since, not until QT_VERSION 0x040500

svn path=/trunk/KDE/kdenetwork/krdc/; revision=1201164
parent f8ce948b
......@@ -99,7 +99,7 @@ MainWindow::MainWindow(QWidget *parent)
m_tabWidget = new TabbedViewWidget(this);
m_tabWidget->setTabPosition((KTabWidget::TabPosition) Settings::tabPosition());
#if QT_VERSION <= 0x040500
#if QT_VERSION >= 0x040500
m_tabWidget->setTabsClosable(Settings::tabCloseButton());
#else
m_tabWidget->setCloseButtonEnabled(Settings::tabCloseButton());
......@@ -915,7 +915,7 @@ void MainWindow::updateConfiguration()
m_tabWidget->setTabBarHidden((m_tabWidget->count() <= 1 && !Settings::showTabBar()) || m_fullscreenWindow);
m_tabWidget->setTabPosition((KTabWidget::TabPosition) Settings::tabPosition());
#if QT_VERSION <= 0x040500
#if QT_VERSION >= 0x040500
m_tabWidget->setTabsClosable(Settings::tabCloseButton());
#else
m_tabWidget->setCloseButtonEnabled(Settings::tabCloseButton());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment