summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-07-23 10:06:59 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-07-23 10:06:59 (GMT)
commit913255f08de43f2ede74143f2d71c1e3a7cf5717 (patch)
treee028338336cced23743debef77131c8c58ea6aac /Swift/QtUI/QtChatTabs.cpp
parentcc8eb390a08580900ef2a00b1d3d45ce93a81785 (diff)
downloadswift-contrib-913255f08de43f2ede74143f2d71c1e3a7cf5717.zip
swift-contrib-913255f08de43f2ede74143f2d71c1e3a7cf5717.tar.bz2
Elide and use scroll buttons on all platforms when chat tab list is too long.
Resolves: #302
Diffstat (limited to 'Swift/QtUI/QtChatTabs.cpp')
-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 2f4d2e5..b1080ea 100644
--- a/Swift/QtUI/QtChatTabs.cpp
+++ b/Swift/QtUI/QtChatTabs.cpp
@@ -24,6 +24,8 @@ QtChatTabs::QtChatTabs() : QWidget() {
#endif
tabs_ = new QtTabWidget(this);
+ tabs_->setUsesScrollButtons(true);
+ tabs_->setElideMode(Qt::ElideRight);
#if QT_VERSION >= 0x040500
/*For Macs, change the tab rendering.*/
tabs_->setDocumentMode(true);