[frameworks/qqc2-desktop-style] org.kde.desktop: TextArea: Use Wrap instead of WordWrap
Nate Graham <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 58114f9ae2a1fe1ec32bb538747e65dc53a0576f by Nate Graham.
Committed on 29/07/2026 at 19:35.
Pushed by ngraham into branch 'master'.
TextArea: Use Wrap instead of WordWrap
WordWrap has a fatal flaw: if a word is ever longer than the maximum
width, that word will overflow. This is almost never what anyone wants,
so WordWrap must only be used in very specialized situations.
Change TextArea to use Wrap so this doesn't happen in any of the
general cases that this library handles; it's always a better default.
The rest of the repo already follows this logic; this is the only place
where it was missed.
M +1 -1 org.kde.desktop/TextArea.qml
https://invent.kde.org/frameworks/qqc2-desktop-style/-/commit/58114f9ae2a1fe1ec32bb538747e65dc53a0576f
diff --git a/org.kde.desktop/TextArea.qml b/org.kde.desktop/TextArea.qml
index a2639ce8..874c60df 100644
--- a/org.kde.desktop/TextArea.qml
+++ b/org.kde.desktop/TextArea.qml
@@ -150,7 +150,7 @@ T.TextArea {
verticalAlignment: controlRoot.verticalAlignment
visible: !controlRoot.length && !controlRoot.preeditText && (!controlRoot.activeFocus || controlRoot.horizontalAlignment !== Qt.AlignHCenter)
elide: Text.ElideRight
- wrapMode: Text.WordWrap
+ wrapMode: Text.Wrap
}
background: StylePrivate.StyleItem {