diff options
Diffstat (limited to 'src/gui/widgets/qplaintextedit_p.h')
-rw-r--r-- | src/gui/widgets/qplaintextedit_p.h | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/gui/widgets/qplaintextedit_p.h b/src/gui/widgets/qplaintextedit_p.h index e2208c1..7ff0c03 100644 --- a/src/gui/widgets/qplaintextedit_p.h +++ b/src/gui/widgets/qplaintextedit_p.h @@ -72,6 +72,7 @@ class QMimeData; class QPlainTextEdit; class ExtraArea; +class QPanGesture; class QPlainTextEditControl : public QTextControl { @@ -91,7 +92,10 @@ public: return r; } inline QRectF cursorRect() { return cursorRect(textCursor()); } - void ensureCursorVisible() { textEdit->ensureCursorVisible(); } + void ensureCursorVisible() { + textEdit->ensureCursorVisible(); + emit microFocusChanged(); + } QPlainTextEdit *textEdit; @@ -148,6 +152,7 @@ public: uint backgroundVisible : 1; uint centerOnScroll : 1; uint inDrag : 1; + uint clickCausedFocus : 1; int topLine; @@ -171,8 +176,14 @@ public: #endif void _q_cursorPositionChanged(); - void _q_modificationChanged(bool); + + int originalOffsetY; + +#ifdef Q_WS_WIN + void _q_gestureTriggered(); + QPanGesture *panGesture; +#endif }; QT_END_NAMESPACE |