summaryrefslogtreecommitdiffstats
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrew den Exter <andrew.den-exter@nokia.com>2011-09-05 07:42:08 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-23 11:26:45 (GMT)
commitd3e0355c56f39d33e0fdedc5ef12ab9ba4c7202e (patch)
tree7902f9699b23a950135662c37cd39463fd4c050b /src/gui/widgets
parent4e41d42c17e2aab6e6a8ebedc9595d9b0854c9e5 (diff)
downloadQt-d3e0355c56f39d33e0fdedc5ef12ab9ba4c7202e.zip
Qt-d3e0355c56f39d33e0fdedc5ef12ab9ba4c7202e.tar.gz
Qt-d3e0355c56f39d33e0fdedc5ef12ab9ba4c7202e.tar.bz2
Fix TextInput test failures.
emitCursorPositionChanged won't emit cursorPositionChanged if the cursor position hasn't changed but that doesn't mean the micro focus hasn't changed, so emit updateMicroFocus changed when cursorPositionChanged isn't. Task-number: QTBUG-21017 Task-number: QTBUG-21011 Task-number: QTBUG-20719 Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com> (cherry picked from commit 6e0e834e0398192a6da11d1e1bca6b74769fb75d) Change-Id: Ia0d244eea051f2a870a084742c4c22f5a45a87bc Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/qlinecontrol.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/widgets/qlinecontrol.cpp b/src/gui/widgets/qlinecontrol.cpp
index 161ad04..9c2d354 100644
--- a/src/gui/widgets/qlinecontrol.cpp
+++ b/src/gui/widgets/qlinecontrol.cpp
@@ -664,6 +664,8 @@ bool QLineControl::finishChange(int validateFromState, bool update, bool edited)
m_selDirty = false;
emit selectionChanged();
}
+ if (m_cursor == m_lastCursorPos)
+ updateMicroFocus();
emitCursorPositionChanged();
return true;
}