mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-11-19 07:57:23 +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;
|
||||
label->setMaximumWidth(max_width);
|
||||
|
||||
if (label->sizeHint().width() > max_width)
|
||||
{
|
||||
label->setWordWrap(true);
|
||||
label->setMinimumWidth(max_width);
|
||||
}
|
||||
|
||||
return label;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user