Make TextEdit word selection more natural.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Fri, 13 May 2011 03:49:20 +0000 (13:49 +1000)
committerAndrew den Exter <andrew.den-exter@nokia.com>
Thu, 9 Jun 2011 08:26:46 +0000 (18:26 +1000)
commit367743ca4758d8fa4732801bcdda7d0b37e33a57
tree11ff4ecf478c82939c2bc1e8f7864814e69ae1b0
parent475c8aed8a7dbcec5b1d3647846f82f6cc940b2c
Make TextEdit word selection more natural.

QTextControl will only extend the selection to a word if the cursor is
directly over it which prevents the selection being extended if the
mouse is dragged up or down a to a shorter line of text making it
difficult to select multiple lines of text.  Just disable that
limitation when the TextEdit word selection is enabled.

Change-Id: I3b9d1575c0141db8441197d740de94a90eacc077
Task-number: QTBUG-19230
Reviewed-by: Martin Jones
tests/auto/declarative/qdeclarativetextedit/data/mouseselection_multiline.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp