mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +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
|
||||
ElideLabel::minimumSizeHint()
|
||||
const {
|
||||
if (Qt::ElideNone == p_func()->m_elideMode)
|
||||
return sizeHint();
|
||||
|
||||
auto metrics = fontMetrics();
|
||||
return QSize{ Util::horizontalAdvance(metrics, Q("…")), metrics.height() };
|
||||
return sizeHint();
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user