From 87ec7c9d481979c0e04ba50c79534a8b7a445332 Mon Sep 17 00:00:00 2001 From: axis Date: Wed, 12 Aug 2009 10:52:32 +0200 Subject: Fix the cursor lagging one step behind in the Virtual Keyboard UI. This was caused by the widget not calling update on the input context after changes to the cursor position. This is a reimplementation of 8d1691e9395, after the QLineControl refactoring. RevBy: Trust me AutoTest: Passed --- src/gui/widgets/qlineedit_p.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/widgets/qlineedit_p.cpp b/src/gui/widgets/qlineedit_p.cpp index d907233..16b28a1 100644 --- a/src/gui/widgets/qlineedit_p.cpp +++ b/src/gui/widgets/qlineedit_p.cpp @@ -154,6 +154,8 @@ void QLineEditPrivate::init(const QString& txt) QObject::connect(control, SIGNAL(editFocusChange(bool)), q, SLOT(_q_editFocusChange(bool))); #endif + QObject::connect(control, SIGNAL(cursorPositionChanged(int, int)), + q, SLOT(updateMicroFocus())); // for now, going completely overboard with updates. QObject::connect(control, SIGNAL(selectionChanged()), -- cgit v0.12