Update cursor position when selection is reversed.
authorAndrew den Exter <andrew.den-exter@nokia.com>
Mon, 25 Jul 2011 06:28:07 +0000 (16:28 +1000)
committerQt by Nokia <qt-info@nokia.com>
Mon, 25 Jul 2011 23:35:40 +0000 (01:35 +0200)
commitef2384ad57c7e7ea40937cced6e6210fd371a978
tree678c6c1234db7feda2dc2476d6ab930fb16ce5e7
parentf7acedb0887fe0980a325303cd86f54d70eabead
Update cursor position when selection is reversed.

A reversed selection will have the same resolved start and end
positions but a different cursor position so testing the end points
alone doesn't guarantee the selection is the same.

Task-number: QTBUG-19456
Reviewed-by: Martin Jones
Change-Id: I516e5a501ec878d673f21e54d688fd2d21b624ef
Reviewed-on: http://codereview.qt.nokia.com/2080
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Andrew den Exter <andrew.den-exter@nokia.com>
src/gui/widgets/qlinecontrol.cpp
tests/auto/qlineedit/tst_qlineedit.cpp