aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/elided_label.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-02-12 10:17:05 -0800
committerGerald Combs <gerald@wireshark.org>2015-02-13 00:50:20 +0000
commita5652c7257835db3f6fce01926d53b236be53405 (patch)
treef33f7f13771217a6c2743590eabd855bd4260906 /ui/qt/elided_label.h
parentf1d1354b838fbbeb7349189178e81a6a83d08e78 (diff)
Qt: ElidedLabel doesn't support rich text / HTML.
Change-Id: Ia5ca9784c60325c01ba5e6378997008f8ef1dd6e Reviewed-on: https://code.wireshark.org/review/7091 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/elided_label.h')
-rw-r--r--ui/qt/elided_label.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/qt/elided_label.h b/ui/qt/elided_label.h
index 6b16c05c23..629008995b 100644
--- a/ui/qt/elided_label.h
+++ b/ui/qt/elided_label.h
@@ -30,11 +30,13 @@ class ElidedLabel : public QLabel
public:
explicit ElidedLabel(QWidget *parent = 0);
void setUrl(const QString &url);
+ void setSmallText(bool small_text = true) { small_text_ = small_text; }
protected:
- void resizeEvent(QResizeEvent *evt);
+ void resizeEvent(QResizeEvent *);
private:
+ bool small_text_;
QString full_text_;
QString url_;