Fix cursor blinking for TextInput and TextEdit
authorSimon Hausmann <simon.hausmann@digia.com>
Mon, 25 Aug 2014 09:06:58 +0000 (11:06 +0200)
committerSimon Hausmann <simon.hausmann@digia.com>
Tue, 26 Aug 2014 10:59:23 +0000 (12:59 +0200)
commit39286a50c32321981adb82ea47c93b7398b257d8
treebb39438cd2f8498188ebcb36558f813a5deec3de
parentd324db8839c5a06980384d0b2d4e06125bb5a83d
Fix cursor blinking for TextInput and TextEdit

Before commit fb339b21b8a24b835cea7a057c47b7c5ad80dd72 relied on the simple
transparent rectangle node to remain invisible. After that commit we used the
regular rectangle node, which doesn't seem to like toggling the color between
transparent and solid black and therefore the cursor was always visible.

As advised by Gunnar this patch implements a much simpler logic: When the
cursor is supposed to be invisible, we just don't create a scene graph node for
it anymore.

Change-Id: I7b0e173f6d37997559ee0911f37903efdb14847f
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
src/quick/items/qquicktextedit.cpp
src/quick/items/qquicktextinput.cpp
src/quick/items/qquicktextinput_p_p.h
src/quick/items/qquicktextnode.cpp
src/quick/items/qquicktextnode_p.h