QQuickTextControl: update cursor rect when cursor changes position
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>
Tue, 16 Sep 2014 08:10:14 +0000 (10:10 +0200)
committerRichard Moe Gustavsen <richard.gustavsen@digia.com>
Tue, 16 Sep 2014 11:00:34 +0000 (13:00 +0200)
commit0e3f52de17e92fb83307dafe132363a57ce30941
treefea6f2db90b21b15334c40a2536c7e77713e4cf3
parentabff566ff85eb1fdee12e8a0fffddb7c1ff2dd7c
QQuickTextControl: update cursor rect when cursor changes position

If the text cursor changes position by indirect manipulation of the
document that backs a QQuickTextControl, we need to inform that
the cursor rect changed as well.

This will fix a bug with QQuickTextEdit that caused the platform input
method to be out of sync since the cursor rect signal was never
emitted from the the text control.

Task-number: QTBUG-41042
Change-Id: Idcf35a2d51c8dffcb80ba21f8e59a61e04e5a879
Reviewed-by: Andrew den Exter <andrew.den.exter@qinetic.com.au>
src/quick/items/qquicktextcontrol.cpp
src/quick/items/qquicktextcontrol_p.h
src/quick/items/qquicktextcontrol_p_p.h