mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Merge pull request #14022 from TryTwo/fix_balloontip_width
Settings BalloonTip: Have wordwrap use max width.
This commit is contained in:
commit
c97d2af814
@ -104,8 +104,12 @@ BalloonTip::BalloonTip(PrivateTag, const QString& title, QString message, QWidge
|
|||||||
|
|
||||||
const int max_width = label->screen()->availableGeometry().width() / 3;
|
const int max_width = label->screen()->availableGeometry().width() / 3;
|
||||||
label->setMaximumWidth(max_width);
|
label->setMaximumWidth(max_width);
|
||||||
|
|
||||||
if (label->sizeHint().width() > max_width)
|
if (label->sizeHint().width() > max_width)
|
||||||
|
{
|
||||||
label->setWordWrap(true);
|
label->setWordWrap(true);
|
||||||
|
label->setMinimumWidth(max_width);
|
||||||
|
}
|
||||||
|
|
||||||
return label;
|
return label;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user