Skip to content

Commit 71f66ea

Browse files
author
Uwe Kindler
committed
Improved ElidingLabel
1 parent 0b3f419 commit 71f66ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ElidingLabel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ QSize CElidingLabel::minimumSizeHint() const
155155
return QLabel::minimumSizeHint();
156156
}
157157
const QFontMetrics &fm = fontMetrics();
158-
QSize size(fm.width(""), fm.height());
158+
QSize size(fm.width(d->Text.left(2) + ""), fm.height());
159159
return size;
160160
}
161161

0 commit comments

Comments
 (0)