diff options
author | Pekka Vuorela <pekka.ta.vuorela@nokia.com> | 2011-10-04 17:44:35 +0300 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-11-05 23:47:02 +0100 |
commit | 7851568c65e0560056c6fa541039543d43a63e20 (patch) | |
tree | 75eef36925198b1e21d60ae1916b1cca8f634ee6 /src/widgets/widgets/qwidgetlinecontrol_p.h | |
parent | 10dc2171cf004705f8212f5100b99bfde04c8d54 (diff) |
QLineEdit - made mouse interactions commit preedit
Simplifying input context mouse handling rules by making
the editor in charge when text gets committed and selected.
This includes:
- Allowing selection to start on top of preedit. Commits once a
single character gets selected
- Double click to commit preedit before selecting a word.
- Only sending events to input context that happen on top of preedit.
- Committing preedit when a mouse press happens outside of it,
allowing to move cursor to click position.
Change-Id: I9dab00ea3445055ffd0d7cae540a1197c5748509
Reviewed-by: Lars Knoll <lars.knoll@nokia.com>
Diffstat (limited to 'src/widgets/widgets/qwidgetlinecontrol_p.h')
-rw-r--r-- | src/widgets/widgets/qwidgetlinecontrol_p.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/widgets/qwidgetlinecontrol_p.h b/src/widgets/widgets/qwidgetlinecontrol_p.h index 3bcdffbf08..e0c304279e 100644 --- a/src/widgets/widgets/qwidgetlinecontrol_p.h +++ b/src/widgets/widgets/qwidgetlinecontrol_p.h @@ -234,6 +234,7 @@ public: m_tentativeCommit.clear(); internalSetText(txt, -1, false); } + void commitPreedit(); QString displayText() const { return m_textLayout.text(); } |