summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swift/QtUI/QtElidingLabel.h')
-rw-r--r--Swift/QtUI/QtElidingLabel.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Swift/QtUI/QtElidingLabel.h b/Swift/QtUI/QtElidingLabel.h
index 589d6f6..79701ec 100644
--- a/Swift/QtUI/QtElidingLabel.h
+++ b/Swift/QtUI/QtElidingLabel.h
@@ -14,10 +14,14 @@ namespace Swift {
public:
QtElidingLabel(QWidget* parent = NULL, Qt::WindowFlags f = 0);
QtElidingLabel(const QString &text, QWidget* parent = NULL, Qt::WindowFlags f = 0);
+ void setText(const QString& text);
virtual ~QtElidingLabel();
virtual void paintEvent(QPaintEvent* event);
private:
void setSizes();
+ bool dirty_;
+ QString fullText_;
+ QRect lastRect_;
};
}