diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-06-15 20:26:17 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-06-15 20:26:17 (GMT) |
commit | 2e014f200768c91a1504002af1be5c0ac5eb0f42 (patch) | |
tree | 426994e725854002010fa228bd7d6fe59b6bc026 /Swift/QtUI | |
parent | d490e74fbca3e4ab4a75123dd75dab3bc753c010 (diff) | |
download | swift-2e014f200768c91a1504002af1be5c0ac5eb0f42.zip swift-2e014f200768c91a1504002af1be5c0ac5eb0f42.tar.bz2 |
setDocumentMode for prettier Mac tabs.
Diffstat (limited to 'Swift/QtUI')
-rw-r--r-- | Swift/QtUI/QtChatTabs.cpp | 4 |
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); |