diff options
author | Roberto Raggi <roberto.raggi@nokia.com> | 2010-06-01 12:38:18 +0200 |
---|---|---|
committer | Roberto Raggi <roberto.raggi@nokia.com> | 2010-06-01 12:38:18 +0200 |
commit | 8d6ac1a041eb26f635914b1c356f47e50cdfdc98 (patch) | |
tree | f317c39984d948391db4cfdc20bfa6fdc8f9aa0c /src/gui/text/qtextcursor_p.h | |
parent | 8709ff7920a378c91ce754a39cae4016709e9e00 (diff) |
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_p.h')
-rw-r--r-- | src/gui/text/qtextcursor_p.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/text/qtextcursor_p.h b/src/gui/text/qtextcursor_p.h index 1bdfa78553..4e36b954eb 100644 --- a/src/gui/text/qtextcursor_p.h +++ b/src/gui/text/qtextcursor_p.h @@ -112,7 +112,8 @@ public: int anchor; int adjusted_anchor; int currentCharFormat; - bool visualNavigation; + uint visualNavigation : 1; + uint keepPositionOnInsert : 1; }; QT_END_NAMESPACE |