summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2013-11-22 13:56:43 (GMT)
committerKevin Smith <git@kismith.co.uk>2013-11-22 13:56:43 (GMT)
commit66137537276e401adc9f49bcb2910790c85180e9 (patch)
tree74248637757a199b608b294526f4fdc3d8a2bd8f
parente6b631bd3c99b45d108e3050b948f07d381a4ca4 (diff)
downloadswift-66137537276e401adc9f49bcb2910790c85180e9.zip
swift-66137537276e401adc9f49bcb2910790c85180e9.tar.bz2
Make chat tabs reorderable.
I had no idea this was available in Qt now - and it's been there since 4.5! Change-Id: I537e2e81947e1741bab61d38d0484f10229a6808
-rw-r--r--Swift/QtUI/QtChatTabs.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index de1ee7c..cf335e1 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -37,6 +37,7 @@ QtChatTabs::QtChatTabs(bool singleWindow) : QWidget(), singleWindow_(singleWindo
tabs_->setDocumentMode(true);
/*Closable tabs are only in Qt4.5 and later*/
tabs_->setTabsClosable(true);
+ tabs_->setMovable(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.