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/QtStatusWidget.h
parentd65ae35e1e14c15c5ae9106e37254b163307934d (diff)
downloadswift-8d697d9aa2f07a3222dea561174f063c382449f1.zip
swift-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/QtStatusWidget.h')
-rw-r--r--Swift/QtUI/QtStatusWidget.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/Swift/QtUI/QtStatusWidget.h b/Swift/QtUI/QtStatusWidget.h
index 111bc84..4425b1d 100644
--- a/Swift/QtUI/QtStatusWidget.h
+++ b/Swift/QtUI/QtStatusWidget.h
@@ -20,6 +20,7 @@ class QListWidgetItem;
namespace Swift {
class QtLineEdit;
+ class QtElidingLabel;
class QtStatusWidget : public QWidget {
Q_OBJECT
public:
@@ -45,7 +46,7 @@ namespace Swift {
//QComboBox *types_;
QStackedWidget* stack_;
QLabel* statusIcon_;
- QLabel* statusTextLabel_;
+ QtElidingLabel* statusTextLabel_;
QtLineEdit* statusEdit_;
QString statusText_;
QString newStatusText_;