From 2e014f200768c91a1504002af1be5c0ac5eb0f42 Mon Sep 17 00:00:00 2001
From: Kevin Smith <git@kismith.co.uk>
Date: Mon, 15 Jun 2009 21:26:17 +0100
Subject: setDocumentMode for prettier Mac tabs.


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);
-- 
cgit v0.10.2-6-g49f6