summaryrefslogtreecommitdiffstats
path: root/src/gui/text/qtextcursor_p.h
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@nokia.com>2011-07-05 13:03:09 +0200
committerLars Knoll <lars.knoll@nokia.com>2011-07-06 11:24:46 +0200
commiteaedcefbf8dbdc77dec07922777cb7dc68740888 (patch)
tree74ce9c54be2984578bd0e438df680aa3ed14ccf2 /src/gui/text/qtextcursor_p.h
parent4ed17a650847d4ad129478608e9697c909126263 (diff)
add QTextControl class to QtGui
This is a reduced version of the old text control class, that doesn't support a few QWidget specific additions. Change-Id: Ib4542845a30473bb2462b2fe14daba178b571368
Diffstat (limited to 'src/gui/text/qtextcursor_p.h')
-rw-r--r--src/gui/text/qtextcursor_p.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/text/qtextcursor_p.h b/src/gui/text/qtextcursor_p.h
index 2968ae5aea..c612169acf 100644
--- a/src/gui/text/qtextcursor_p.h
+++ b/src/gui/text/qtextcursor_p.h
@@ -68,6 +68,8 @@ public:
QTextCursorPrivate(const QTextCursorPrivate &rhs);
~QTextCursorPrivate();
+ static inline QTextCursorPrivate *getPrivate(QTextCursor *c) { return c->d; }
+
enum AdjustResult { CursorMoved, CursorUnchanged };
AdjustResult adjustPosition(int positionOfChange, int charsAddedOrRemoved, QTextUndoCommand::Operation op);