mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-12-16 04:09:39 +00:00
Settings BalloonTip: Wrapped tips were not using the maximum width, resulting in a much smaller width than they should have.
This commit is contained in:
parent
e8d9c124e5
commit
2bc944e1a3
@ -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