Move the remaining functionality of ChatDocumentHandler to ChatTextItemHelper or split into own objects

This commit is contained in:
James Graham
2025-12-31 18:49:19 +00:00
parent 22d7d90cf4
commit 9ea76ca5d0
32 changed files with 1389 additions and 1494 deletions

View File

@@ -110,8 +110,14 @@ QQC2.Control {
height: implicitHeight
y: -height - 5
z: 10
<<<<<<< HEAD
chatDocumentHandler: documentHandler
=======
room: root.Message.room
type: root.chatBarCache.isEditing ? ChatBarType.Edit : ChatBarType.Thread
// textItem: textArea
>>>>>>> c7858a151 (Move the remaining functionality of ChatDocumentHandler to ChatTextItemHelper or split into own objects)
margins: 0
Behavior on height {
NumberAnimation {
@@ -125,13 +131,6 @@ QQC2.Control {
// opt-out of whatever spell checker a styled TextArea might come with
Kirigami.SpellCheck.enabled: false
ChatDocumentHandler {
id: documentHandler
type: root.chatBarCache.isEditing ? ChatBarType.Edit : ChatBarType.Thread
textItem: textArea
room: root.Message.room
}
TextMetrics {
id: textMetrics
text: textArea.text