Editor: remove html from default mime data

This is known to be expensive and a lot of users actually prefer plain
text in the copied mime data to avoid unwanted coloring in 3rd party
tools. Add a separate action (Edit > Advanced > Copy With Highlighting)
that preserves the original functionality.

Change-Id: I0f3c529146ab94d0cd9ce9e3b997c8501a577f03
Reviewed-by: hjk <hjk@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
David Schulz
2022-08-30 15:34:20 +02:00
parent 77b5613cd9
commit 8fab2011ba
4 changed files with 23 additions and 1 deletions

View File

@@ -150,6 +150,7 @@ const char MOVE_LINE_UP[] = "TextEditor.MoveLineUp";
const char MOVE_LINE_DOWN[] = "TextEditor.MoveLineDown";
const char COPY_LINE_UP[] = "TextEditor.CopyLineUp";
const char COPY_LINE_DOWN[] = "TextEditor.CopyLineDown";
const char COPY_WITH_HTML[] = "TextEditor.CopyWithHtml";
const char JOIN_LINES[] = "TextEditor.JoinLines";
const char INSERT_LINE_ABOVE[] = "TextEditor.InsertLineAboveCurrentLine";
const char INSERT_LINE_BELOW[] = "TextEditor.InsertLineBelowCurrentLine";