MessageEventModel plain text role

Update the message role to be named plainText and use it the message delegate for openMessageContext.
This removes the need for plainText in controller so it is removed.
This commit is contained in:
James Graham
2023-04-27 16:58:52 +00:00
parent af078f03d0
commit 4b879be4ea
6 changed files with 6 additions and 19 deletions

View File

@@ -207,14 +207,6 @@ public:
*/
Q_INVOKABLE QString formatByteSize(double size, int precision = 1) const;
/**
* @brief Return a plain text representation of the text in a given QQuickTextDocument.
*
* TODO: This is only used in messageDelegate to get the plain text of a message.
* This should be changed to a role in messageeventmodel via texthandler.
*/
Q_INVOKABLE QString plainText(QQuickTextDocument *document) const;
/**
* @brief Force a QQuickTextDocument to refresh when images are loaded.
*