summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-05-26 21:24:39 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-05-26 21:24:39 (GMT)
commit8d697d9aa2f07a3222dea561174f063c382449f1 (patch)
tree5206c4927231f608d1ed50609fa5a361b1fa7b77 /Swift/QtUI/QtRosterHeader.h
parentd65ae35e1e14c15c5ae9106e37254b163307934d (diff)
downloadswift-contrib-8d697d9aa2f07a3222dea561174f063c382449f1.zip
swift-contrib-8d697d9aa2f07a3222dea561174f063c382449f1.tar.bz2
Make better use of the elided text labels.
Cache the elided text to avoid recalculating and making the QLabel superclass recalculate everything. Also using plaintext with a font instead of richtext means that it doesn't have to deal with truncated html tags. Hopefully Resolves: #398
Diffstat (limited to 'Swift/QtUI/QtRosterHeader.h')
-rw-r--r--Swift/QtUI/QtRosterHeader.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtRosterHeader.h b/Swift/QtUI/QtRosterHeader.h
index 6d36b75..d4948cb 100644
--- a/Swift/QtUI/QtRosterHeader.h
+++ b/Swift/QtUI/QtRosterHeader.h
@@ -21,6 +21,7 @@ class QHBoxLayout;
namespace Swift {
class QtStatusWidget;
+ class QtElidingLabel;
class QtRosterHeader : public QWidget {
Q_OBJECT
@@ -37,7 +38,7 @@ namespace Swift {
private:
QString name_;
QLabel* avatarLabel_;
- QLabel* nameLabel_;
+ QtElidingLabel* nameLabel_;
QtTextEdit* statusEdit_;
QToolBar* toolBar_;
QtStatusWidget* statusWidget_;