Commit 39286a50 authored by Simon Hausmann's avatar Simon Hausmann
Browse files

Fix cursor blinking for TextInput and TextEdit

Before commit fb339b21

 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: default avatarGabriel de Dietrich <gabriel.dedietrich@digia.com>
Reviewed-by: default avatarGunnar Sletta <gunnar@sletta.org>
parent d324db88
Showing with 25 additions and 44 deletions
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment