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; }