Ignore changes to selectByMouse during a selection.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 27 Apr 2011 03:57:04 +0000 (13:57 +1000)
committerAndrew den Exter <andrew.den-exter@nokia.com>
Wed, 27 Apr 2011 04:51:22 +0000 (14:51 +1000)
commit47712d1f330e4b22ce6dd30e7557288ef7f7fca0
tree40c179802054fa5ee9139dfd04c9269b03664c29
parent8878e2c53a0c9408d4b468e2dad485743c32f58b
Ignore changes to selectByMouse during a selection.

Use the value of selectByMouse at the time of a mouse press event in
all subsequent mouse events in a sequence.  This is the same as
ignoring the intial mouse press except mouse events for other actions
are still accepted.

Change-Id: I59b50bf95d26c6320e6e74eeb679b4153e0edf4d
Task-number: QTBUG-18887
Reviewed-by: Martin Jones
13 files changed:
src/declarative/graphicsitems/qdeclarativetextinput.cpp
src/declarative/graphicsitems/qdeclarativetextinput_p_p.h
src/gui/text/qtextcontrol.cpp
tests/auto/declarative/qdeclarativetextedit/data/mouseselection_false_readonly.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextedit/data/mouseselection_true_readonly.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextedit/tst_qdeclarativetextedit.cpp
tests/auto/declarative/qdeclarativetextinput/data/mouseselection_default.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextinput/data/mouseselection_false.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextinput/data/mouseselection_false_readonly.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextinput/data/mouseselection_false_words.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextinput/data/mouseselection_true_readonly.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextinput/data/mouseselection_true_words.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativetextinput/tst_qdeclarativetextinput.cpp