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>
Fri, 13 May 2011 04:11:07 +0000 (14:11 +1000)
commitf69e465e15930ef02dceba7175eed6f3f1df070e
treed21c81e738b7215bb0097b93396e8e40aa44f07a
parent88492fcea5d5c8dd6a8e1c2458a6a2b8747e84c7
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
src/gui/text/qtextcontrol.cpp
tests/auto/declarative/qdeclarativetextedit/data/mouseselection_multiline.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp