Make TextEdit word selection behaviour consistent.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 12 Mar 2012 03:39:23 +0000 (13:39 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 20 Mar 2012 05:49:30 +0000 (06:49 +0100)
commitb93b4a74825ce9adacdbd1d759d5ed696c35b36a
tree702644d8f2ba187ce86f6c9195f3e52b220af092
parent0f1be99881883b28a80f0e5f276ea3bb544a9611
Make TextEdit word selection behaviour consistent.

Word selection initiated by a double click in QTextEdit only selects
a word if the drag point is closer to the end than the start
(assuming ltr selection) which can make it difficult to select small
words with touch input, as such the SelectWords mouseSelectionMode of
TextEdit selected a word if the drag point intersected any part of the
word.  Since we no longer have to retain compability for QTextEdit we
can settle on a single behaviour for word selection.

Change-Id: Iaabb7938a2b61b84a290a9ee41e407c83144b96f
Reviewed-by: Yann Bodson <yann.bodson@nokia.com>
src/quick/items/qquicktextcontrol.cpp
tests/auto/quick/qquicktextedit/data/mouseselection_true.qml
tests/auto/quick/qquicktextedit/tst_qquicktextedit.cpp