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
Change-Id: I86344621151dbeba0eebc67fbc786a8da76b7021
Reviewed-by: Joona Petrell <joona.t.petrell@nokia.com>
bb10
Andrew den Exter 2011-09-05 17:42:08 +10:00 committed by Qt by Nokia
parent 28165d5446
commit 6e0e834e03
1 changed files with 2 additions and 0 deletions

View File

@ -694,6 +694,8 @@ bool QWidgetLineControl::finishChange(int validateFromState, bool update, bool e
m_selDirty = false;
emit selectionChanged();
}
if (m_cursor == m_lastCursorPos)
updateMicroFocus();
emitCursorPositionChanged();
return true;
}