diff options
author | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2011-10-07 13:48:29 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-05 22:10:52 +0100 |
commit | 4b3d88a9c67402b6a234d597bab25846f039bbdb (patch) | |
tree | 143f07bd13d06f06ae1fb2c6100c91f0c61becee /src/widgets/widgets/qwidgettextcontrol_p_p.h | |
parent | 15d25dc6763427414b96a5ecd739d0e9ee047456 (diff) |
QTextEdit - mouse events to override input context
- Selection can start on top of preedit
- Mouse press outside preedit commits
- Double click to commit on top of preedit
Change-Id: Ia2698d97d354a677d935de1a8fd9ed53a161ca5e
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/widgets/widgets/qwidgettextcontrol_p_p.h')
-rw-r--r-- | src/widgets/widgets/qwidgettextcontrol_p_p.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/widgets/widgets/qwidgettextcontrol_p_p.h b/src/widgets/widgets/qwidgettextcontrol_p_p.h index 0f163d7e04..613d1a6097 100644 --- a/src/widgets/widgets/qwidgettextcontrol_p_p.h +++ b/src/widgets/widgets/qwidgettextcontrol_p_p.h @@ -169,6 +169,8 @@ public: void showToolTip(const QPoint &globalPos, const QPointF &pos, QWidget *contextWidget); #endif + bool isPreediting() const; + void append(const QString &text, Qt::TextFormat format = Qt::AutoText); QTextDocument *doc; @@ -190,7 +192,7 @@ public: bool mousePressed; bool mightStartDrag; - QPoint dragStartPos; + QPoint mousePressPos; QPointer<QWidget> contextWidget; int lastSelectionPosition; |