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
parent
28165d5446
commit
6e0e834e03
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue