diff options
author | Kevin Smith <git@kismith.co.uk> | 2009-08-16 15:14:56 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2009-08-16 15:14:56 (GMT) |
commit | 6bb73fb2d367a95cc1df2addf7dd5477b643c2e8 (patch) | |
tree | f6c42a9de8ff3800c9ffe1e44b92bff1e6eda7e6 /Swift/QtUI/QtRosterHeader.cpp | |
parent | 6d64d22bdc18a8b4d3ef1ae7087f657de6c9abd9 (diff) | |
download | swift-contrib-6bb73fb2d367a95cc1df2addf7dd5477b643c2e8.zip swift-contrib-6bb73fb2d367a95cc1df2addf7dd5477b643c2e8.tar.bz2 |
Adding in a button to the roster for 'Add Contact'
Diffstat (limited to 'Swift/QtUI/QtRosterHeader.cpp')
-rw-r--r-- | Swift/QtUI/QtRosterHeader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Swift/QtUI/QtRosterHeader.cpp b/Swift/QtUI/QtRosterHeader.cpp index 9b5410b..425b22d 100644 --- a/Swift/QtUI/QtRosterHeader.cpp +++ b/Swift/QtUI/QtRosterHeader.cpp @@ -101,13 +101,13 @@ void QtRosterHeader::resizeNameLabel() { nameLabel_->setText("<b>" + escapedName + "</b>"); int reductionCount = 0; while (nameLabel_->sizeHint().width() + statusWidget_->width() + 30 > width()) { - qDebug() << nameLabel_->sizeHint().width() << " " << statusWidget_->width() << " " << width(); + //qDebug() << nameLabel_->sizeHint().width() << " " << statusWidget_->width() << " " << width(); reductionCount++; QString reducedName = name_; reducedName.remove(name_.length() - reductionCount, reductionCount); reducedName.replace("<","<"); nameLabel_->setText("<b>" + reducedName + + "...</b>"); - qDebug() << "Shrunk " << escapedName << " down to " << reducedName; + // qDebug() << "Shrunk " << escapedName << " down to " << reducedName; } nameLabel_->setToolTip(name_); } |