[utilities/kate/release/26.08] addons/git-blame: Word wrap in git blame tooltip
Christoph Cullmann <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit bde7275531a7e52e5e6993251f6dd50f1202cb1c by Christoph Cullmann. Committed on 16/07/2026 at 17:17. Pushed by cullmann into branch 'release/26.08'. Word wrap in git blame tooltip Otherwise if there is a commit description/subject with no word wrapping, the tooltip grows larger than the screen size (cherry picked from commit 5508b4a66594d5d08bcc7474cc821603746383a9) Co-authored-by: Waqar Ahmed <[email protected]> M +1 -0 addons/git-blame/gitblametooltip.cpp https://invent.kde.org/utilities/kate/-/commit/bde7275531a7e52e5e6993251f6dd50f1202cb1c diff --git a/addons/git-blame/gitblametooltip.cpp b/addons/git-blame/gitblametooltip.cpp index 53a413d300..5602171e88 100644 --- a/addons/git-blame/gitblametooltip.cpp +++ b/addons/git-blame/gitblametooltip.cpp @@ -151,6 +151,7 @@ public: setProperty("_breeze_force_frame", true); setAttribute(Qt::WA_TranslucentBackground); setOpenLinks(false); + setWordWrapMode(QTextOption::WrapAtWordBoundaryOrAnywhere); connect(&m_hideTimer, &QTimer::timeout, this, &GitBlameTooltipPrivate::hideTooltip); setHorizontalScrollBarPolicy(Qt::ScrollBarAsNeeded);