summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextcursor.h
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2010-06-01 10:39:18 (GMT)
committerRoberto Raggi <roberto.raggi@nokia.com>2010-06-01 10:39:18 (GMT)
commitbbc96efe5f47353d3188728fc9024cfec5553709 (patch)
tree7ba74d60fbfd519989c3d5532cb3c631137cf025 /src/gui/text/qtextcursor.h
parent8d6ac1a041eb26f635914b1c356f47e50cdfdc98 (diff)
downloadQt-bbc96efe5f47353d3188728fc9024cfec5553709.zip
Qt-bbc96efe5f47353d3188728fc9024cfec5553709.tar.gz
Qt-bbc96efe5f47353d3188728fc9024cfec5553709.tar.bz2
Introduced getter and setter for the visual X cursor position.
The mechanism allows the cursor to move up and down on a visually straight line with proportional fonts, and to gently "jump" over short lines. Reviewed-by: mae
Diffstat (limited to 'src/gui/text/qtextcursor.h')
-rw-r--r--src/gui/text/qtextcursor.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/text/qtextcursor.h b/src/gui/text/qtextcursor.h
index 6cb776c..251cb33 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 setVerticalMovementX(int x);
+ int verticalMovementX() const;
+
void setKeepPositionOnInsert(bool b);
bool keepPositionOnInsert() const;