summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-05-23 15:39:08 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-05-23 15:39:08 (GMT)
commit3dbd488df47475a6164345506a53d41cbc04d780 (patch)
tree7f4dccd5da468b36e54a74f58760270074b44545 /Swift/QtUI
parenta68530cbbfeb17e01fd684b1ef41b960bc173f66 (diff)
downloadswift-3dbd488df47475a6164345506a53d41cbc04d780.zip
swift-3dbd488df47475a6164345506a53d41cbc04d780.tar.bz2
Warn if compiling with Qt <4.5 where needed.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index 42c80a7..3ac423f 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -25,6 +25,8 @@ QtChatTabs::QtChatTabs() : QWidget() {
/*Closable tabs are only in Qt4.5 and later*/
tabs_->setTabsClosable(true);
connect(tabs_, SIGNAL(tabCloseRequested(int)), this, SLOT(handleTabCloseRequested(int)));
+#else
+#warning Qt 4.5 or later is needed. Trying anyway, some things will be disabled.
#endif
QVBoxLayout *layout = new QVBoxLayout;
layout->setSpacing(0);