Make it easier to select words at the start of a line.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 24 Aug 2011 01:26:29 +0000 (11:26 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 5 Sep 2011 02:08:04 +0000 (04:08 +0200)
commitbb2f045c10965542ae14275e8ce5a97e42931d8d
treecdf592e31093c20fc1c03d3ec3536215812744ce
parent06e2ce51d1170557e43d41767947a1d6eb74c637
Make it easier to select words at the start of a line.

QTextControl's word selection will only include a word if the cursor
position is past the mid point of the word. This can make it
difficult to select words near the edges of the screen on touch
devices.  For the TextEdit word selection mode select a word ignore
the relative position within a word.

Task-number: QT-5206
Change-Id: I4e5675596cd89934b3c2bc5d825088887c222fe8
Reviewed-by: Martin Jones
Reviewed-on: http://codereview.qt.nokia.com/4166
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/gui/text/qtextcontrol.cpp