Hide cursor when text fields becomes read only
authorSanttu Lakkala <santtu.lakkala@nomovok.com>
Thu, 16 Apr 2015 13:51:45 +0000 (16:51 +0300)
committerSanttu Lakkala <santtu.lakkala@nomovok.com>
Tue, 12 May 2015 08:23:16 +0000 (08:23 +0000)
commit4e944555aa1b9efa30b07ebb5bc5191c2ea6c130
treead1e9e9e953a2923831d05867d82aa3304a9cb55
parent0f61aa5efe1c12337f3ab753c08e70d6eaf6c2ab
Hide cursor when text fields becomes read only

Clear the cursor node in TextEdit if field is read only. Otherwise the
cursor stays visible indefinitely, if it were at the moment the flag
was set.

Task-number: QTBUG-44735
Change-Id: Ib39138260ad8a4d7e5ed2185b8a04c577ee1eff0
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
src/quick/items/qquicktextedit.cpp
src/quick/items/qquicktextinput.cpp
tests/auto/quick/qquicktextinput/tst_qquicktextinput.cpp