summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-04-23 18:17:35 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-04-23 18:17:35 (GMT)
commit4395aa54a74b719c40931364390f94bdc35c81db (patch)
tree0962da255cdb1d09bdce9ed651c9074d2fe4547b /Swift/QtUI
parent91686a86876553774452d97f3f74d5f147b19164 (diff)
downloadswift-4395aa54a74b719c40931364390f94bdc35c81db.zip
swift-4395aa54a74b719c40931364390f94bdc35c81db.tar.bz2
Fix compilation on Qt < 4.5
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtMainWindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtMainWindow.cpp b/Swift/QtUI/QtMainWindow.cpp
index 48cd6c4..fe4b179 100644
--- a/Swift/QtUI/QtMainWindow.cpp
+++ b/Swift/QtUI/QtMainWindow.cpp
@@ -41,7 +41,9 @@ QtMainWindow::QtMainWindow(UIEventStream* uiEventStream, QtTreeWidgetFactory *tr
connect(meView_, SIGNAL(onChangeStatusRequest(StatusShow::Type, const QString&)), this, SLOT(handleStatusChanged(StatusShow::Type, const QString&)));
tabs_ = new QtTabWidget(this);
+#if QT_VERSION >= 0x040500
tabs_->setDocumentMode(true);
+#endif
tabs_->setTabPosition(QTabWidget::South);
mainLayout->addWidget(tabs_);
contactsTabWidget_ = new QWidget(this);