aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquicktextinput_p_p.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@digia.com>2014-08-25 11:06:58 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2014-08-26 12:59:23 +0200
commit39286a50c32321981adb82ea47c93b7398b257d8 (patch)
treebb39438cd2f8498188ebcb36558f813a5deec3de /src/quick/items/qquicktextinput_p_p.h
parentd324db8839c5a06980384d0b2d4e06125bb5a83d (diff)
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>
Diffstat (limited to 'src/quick/items/qquicktextinput_p_p.h')
-rw-r--r--src/quick/items/qquicktextinput_p_p.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/quick/items/qquicktextinput_p_p.h b/src/quick/items/qquicktextinput_p_p.h
index 2caca45bce..7d9f3ff9ce 100644
--- a/src/quick/items/qquicktextinput_p_p.h
+++ b/src/quick/items/qquicktextinput_p_p.h
@@ -150,8 +150,6 @@ public:
#ifndef QT_NO_IM
Qt::InputMethodHints effectiveInputMethodHints() const;
#endif
- void hideCursor();
- void showCursor();
void handleFocusEvent(QFocusEvent *event);
struct MaskInputData {