Since only 1 message can be edited instantiate just 1 instance of ChatDocumentHandler and update when a message is edited.
This commit is contained in:
@@ -124,16 +124,6 @@ QQC2.TextArea {
|
||||
}
|
||||
}
|
||||
|
||||
ChatDocumentHandler {
|
||||
id: documentHandler
|
||||
isEdit: true
|
||||
document: root.textDocument
|
||||
cursorPosition: root.cursorPosition
|
||||
selectionStart: root.selectionStart
|
||||
selectionEnd: root.selectionEnd
|
||||
room: currentRoom // We don't care about saving for edits so this is OK.
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: editTextMetrics
|
||||
text: root.text
|
||||
|
||||
Reference in New Issue
Block a user