summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-06-15 20:26:17 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-06-15 20:26:17 (GMT)
commit2e014f200768c91a1504002af1be5c0ac5eb0f42 (patch)
tree426994e725854002010fa228bd7d6fe59b6bc026 /Swift/QtUI/QtChatTabs.cpp
parentd490e74fbca3e4ab4a75123dd75dab3bc753c010 (diff)
downloadswift-contrib-2e014f200768c91a1504002af1be5c0ac5eb0f42.zip
swift-contrib-2e014f200768c91a1504002af1be5c0ac5eb0f42.tar.bz2
setDocumentMode for prettier Mac tabs.
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-rw-r--r--Swift/QtUI/QtChatTabs.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtChatTabs.cpp b/Swift/QtUI/QtChatTabs.cpp
index f2349a9..cd3aada 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -8,6 +8,10 @@
namespace Swift {
QtChatTabs::QtChatTabs() {
tabs_ = new QTabWidget(this);
+#if QT_VERSION >= 0x040500
+ //For Macs, change the tab rendering.
+ tabs_->setDocumentMode(true);
+#endif
QVBoxLayout *layout = new QVBoxLayout;
layout->setSpacing(0);
layout->setContentsMargins(0, 3, 0, 0);