diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-06-01 10:38:18 (GMT) |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-06-01 10:38:18 (GMT) |
commit | 8d6ac1a041eb26f635914b1c356f47e50cdfdc98 (patch) | |
tree | f317c39984d948391db4cfdc20bfa6fdc8f9aa0c /src/gui/text/qtextcursor.h | |
parent | 8709ff7920a378c91ce754a39cae4016709e9e00 (diff) | |
download | Qt-8d6ac1a041eb26f635914b1c356f47e50cdfdc98.zip Qt-8d6ac1a041eb26f635914b1c356f47e50cdfdc98.tar.gz Qt-8d6ac1a041eb26f635914b1c356f47e50cdfdc98.tar.bz2 |
Defines whether the cursor should keep its current position.
Defines whether the cursor should keep its position when
text gets inserted at the current position of the cursor.
For example, we don't want QTextCursor to extend the selection
when inserting characters at the end of an extra selection
representing a user-type but we do want the selection to grow
when rewriting a region of code (e.g. when using our QuickFix engine).
Task-number: QTBUG-11075
Reviewed-by: mae
Diffstat (limited to 'src/gui/text/qtextcursor.h')
-rw-r--r-- | src/gui/text/qtextcursor.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qtextcursor.h b/src/gui/text/qtextcursor.h index 3e968a3..6cb776c 100644 --- a/src/gui/text/qtextcursor.h +++ b/src/gui/text/qtextcursor.h @@ -132,6 +132,9 @@ public: bool visualNavigation() const; void setVisualNavigation(bool b); + void setKeepPositionOnInsert(bool b); + bool keepPositionOnInsert() const; + void deleteChar(); void deletePreviousChar(); |