diff options
author | Kevin Smith <git@kismith.co.uk> | 2010-05-24 15:49:03 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2010-05-24 15:49:03 (GMT) |
commit | 10534d5b942e7ef1e2f8e6900fb5b17411111b06 (patch) | |
tree | dad1d97e518614150b38a4f7a1e262228b732bff /Swift/QtUI/QtRosterHeader.cpp | |
parent | c85da0a6e0448b07c51ae07e41a6714429510b83 (diff) | |
download | swift-contrib-10534d5b942e7ef1e2f8e6900fb5b17411111b06.zip swift-contrib-10534d5b942e7ef1e2f8e6900fb5b17411111b06.tar.bz2 |
Elide text in the roster header when it's wider than the roster.
Resolves: #369
Diffstat (limited to 'Swift/QtUI/QtRosterHeader.cpp')
-rw-r--r-- | Swift/QtUI/QtRosterHeader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtRosterHeader.cpp b/Swift/QtUI/QtRosterHeader.cpp index 6efb80d..fc3d0e6 100644 --- a/Swift/QtUI/QtRosterHeader.cpp +++ b/Swift/QtUI/QtRosterHeader.cpp @@ -14,6 +14,7 @@ #include <QMouseEvent> #include "QtStatusWidget.h" +#include "Swift/QtUI/QtElidingLabel.h" namespace Swift { QtRosterHeader::QtRosterHeader(QWidget* parent) : QWidget(parent) { @@ -36,7 +37,7 @@ QtRosterHeader::QtRosterHeader(QWidget* parent) : QWidget(parent) { rightLayout->setContentsMargins(4,0,0,0); topLayout->addLayout(rightLayout); - nameLabel_ = new QLabel(this); + nameLabel_ = new QtElidingLabel(this); setName("Me"); rightLayout->addWidget(nameLabel_); |