mirror of
https://github.com/githubuser0xFFFF/Qt-Advanced-Docking-System.git
synced 2024-12-26 08:01:32 +08:00
Improved ElidingLabel
This commit is contained in:
parent
0b3f419c80
commit
71f66ea6dc
@ -155,7 +155,7 @@ QSize CElidingLabel::minimumSizeHint() const
|
|||||||
return QLabel::minimumSizeHint();
|
return QLabel::minimumSizeHint();
|
||||||
}
|
}
|
||||||
const QFontMetrics &fm = fontMetrics();
|
const QFontMetrics &fm = fontMetrics();
|
||||||
QSize size(fm.width("…"), fm.height());
|
QSize size(fm.width(d->Text.left(2) + "…"), fm.height());
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user