summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2009-08-12 08:52:32 (GMT)
committeraxis <qt-info@nokia.com>2009-08-17 07:59:41 (GMT)
commit87ec7c9d481979c0e04ba50c79534a8b7a445332 (patch)
tree1c3b9dd9a4ee471df1a78f81f58023171ece7bb9
parent8cfcc81c9ff784d61eccdef53a3ce7ef125526f8 (diff)
downloadQt-87ec7c9d481979c0e04ba50c79534a8b7a445332.zip
Qt-87ec7c9d481979c0e04ba50c79534a8b7a445332.tar.gz
Qt-87ec7c9d481979c0e04ba50c79534a8b7a445332.tar.bz2
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
-rw-r--r--src/gui/widgets/qlineedit_p.cpp2
1 files changed, 2 insertions, 0 deletions
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()),