mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
GUI: elide label: unify sizeHint & minimumSizeHint functions
This commit is contained in:
parent
000a17844c
commit
f303046445
@ -93,11 +93,7 @@ ElideLabel::sizeHint()
|
|||||||
QSize
|
QSize
|
||||||
ElideLabel::minimumSizeHint()
|
ElideLabel::minimumSizeHint()
|
||||||
const {
|
const {
|
||||||
if (Qt::ElideNone == p_func()->m_elideMode)
|
return sizeHint();
|
||||||
return sizeHint();
|
|
||||||
|
|
||||||
auto metrics = fontMetrics();
|
|
||||||
return QSize{ Util::horizontalAdvance(metrics, Q("…")), metrics.height() };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
Loading…
Reference in New Issue
Block a user