QWidgetLineControl: Add missing emit keywords
Add emit keyword to avoid misunderstanding Change-Id: Iec3a896b75769a0bbc791e186d335ed0f728434f Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
This commit is contained in:
parent
fddeec60cb
commit
3c24bb026e
@ -718,7 +718,7 @@ bool QWidgetLineControl::finishChange(int validateFromState, bool update, bool e
|
|||||||
emit selectionChanged();
|
emit selectionChanged();
|
||||||
}
|
}
|
||||||
if (m_cursor == m_lastCursorPos)
|
if (m_cursor == m_lastCursorPos)
|
||||||
updateMicroFocus();
|
emit updateMicroFocus();
|
||||||
emitCursorPositionChanged();
|
emitCursorPositionChanged();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@ -1395,7 +1395,7 @@ void QWidgetLineControl::emitCursorPositionChanged()
|
|||||||
if (m_cursor != m_lastCursorPos) {
|
if (m_cursor != m_lastCursorPos) {
|
||||||
const int oldLast = m_lastCursorPos;
|
const int oldLast = m_lastCursorPos;
|
||||||
m_lastCursorPos = m_cursor;
|
m_lastCursorPos = m_cursor;
|
||||||
cursorPositionChanged(oldLast, m_cursor);
|
emit cursorPositionChanged(oldLast, m_cursor);
|
||||||
#if QT_CONFIG(accessibility)
|
#if QT_CONFIG(accessibility)
|
||||||
// otherwise we send a selection update which includes the cursor
|
// otherwise we send a selection update which includes the cursor
|
||||||
if (!hasSelectedText()) {
|
if (!hasSelectedText()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user