mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Fixed most Qt 5.14 deprecation warnings
This commit is contained in:
@@ -829,7 +829,7 @@ namespace BlackGui
|
||||
label->setToolTip(longText);
|
||||
const QFontMetrics metrics(label->font());
|
||||
const int width = qMax(label->width() - 2, 0);
|
||||
const int wl = metrics.width(longText);
|
||||
const int wl = metrics.horizontalAdvance(longText);
|
||||
if (wl >= width) { label->setText(longText); return; }
|
||||
if (qRound(wl * 0.85) > wl)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user