summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-08-29 16:15:27 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-08-29 16:15:27 (GMT)
commit030c2d8a448dbf17808b840df1d0379639867e99 (patch)
treee510f94602c35707a59759d7c27027ef8b957ae8 /Swift/QtUI/QtRosterHeader.cpp
parent2ceddd421319cbab2deb89821e81fb1a7bf724ae (diff)
downloadswift-030c2d8a448dbf17808b840df1d0379639867e99.zip
swift-030c2d8a448dbf17808b840df1d0379639867e99.tar.bz2
Show contact count on collapsed roster groups
Diffstat (limited to 'Swift/QtUI/QtRosterHeader.cpp')
-rw-r--r--Swift/QtUI/QtRosterHeader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Swift/QtUI/QtRosterHeader.cpp b/Swift/QtUI/QtRosterHeader.cpp
index 425b22d..2a01868 100644
--- a/Swift/QtUI/QtRosterHeader.cpp
+++ b/Swift/QtUI/QtRosterHeader.cpp
@@ -99,6 +99,9 @@ void QtRosterHeader::resizeNameLabel() {
QString escapedName = name_;
escapedName.replace("<","&lt;");
nameLabel_->setText("<b>" + escapedName + "</b>");
+ return;
+ //FIXME: Make this not an infinite loop, so it can be continued.
+
int reductionCount = 0;
while (nameLabel_->sizeHint().width() + statusWidget_->width() + 30 > width()) {
//qDebug() << nameLabel_->sizeHint().width() << " " << statusWidget_->width() << " " << width();