diff options
| author | TryTwo <taolas@gmail.com> | 2025-10-16 15:58:32 -0700 |
|---|---|---|
| committer | TryTwo <taolas@gmail.com> | 2025-10-16 15:58:32 -0700 |
| commit | 2bc944e1a3c974bea031cd1b2c4dd7257deca2da (patch) | |
| tree | 2cff25b03be7b355b1b1808c672999499477c6ed /Source | |
| parent | e8d9c124e5290c9c02c16d83583ce82b4e57c0f2 (diff) | |
Settings BalloonTip: Wrapped tips were not using the maximum width, resulting in a much smaller width than they should have.
Diffstat (limited to 'Source')
| -rw-r--r-- | Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp b/Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp index ffed038c19..d9dce8dc81 100644 --- a/Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp +++ b/Source/Core/DolphinQt/Config/ToolTipControls/BalloonTip.cpp @@ -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; }; |
