Treat links as a single character for the purposes of delete, backspace, left and right.

When backspacing at a link the first key selects the whole link the second deletes. Similar for delete, left and right.
This commit is contained in:
James Graham
2026-02-22 14:42:56 +00:00
parent c6313d2951
commit 0a99e90591
4 changed files with 107 additions and 2 deletions

View File

@@ -187,6 +187,11 @@ public:
*/
void setCursorPosition(int pos);
/**
* @brief Set the selection of the underlying text item to the given cursor.
*/
void setSelection(const QTextCursor &cursor);
/**
* @brief Set the cursor visibility of the underlying text item to the given value.
*/