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:
TryTwo 2025-10-16 15:58:32 -07:00
parent e8d9c124e5
commit 2bc944e1a3

View File

@ -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;
}; };