Improved ElidingLabel

This commit is contained in:
Uwe Kindler 2018-11-30 16:09:57 +01:00
parent 0b3f419c80
commit 71f66ea6dc

View File

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