From 71f66ea6dcd9c6095cf2db5fe6580f19aa81c494 Mon Sep 17 00:00:00 2001 From: Uwe Kindler Date: Fri, 30 Nov 2018 16:09:57 +0100 Subject: [PATCH] Improved ElidingLabel --- src/ElidingLabel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ElidingLabel.cpp b/src/ElidingLabel.cpp index c4c3bce..cfebb16 100644 --- a/src/ElidingLabel.cpp +++ b/src/ElidingLabel.cpp @@ -155,7 +155,7 @@ QSize CElidingLabel::minimumSizeHint() const return QLabel::minimumSizeHint(); } const QFontMetrics &fm = fontMetrics(); - QSize size(fm.width("…"), fm.height()); + QSize size(fm.width(d->Text.left(2) + "…"), fm.height()); return size; }