diff options
author | Gong Weia <gongweia@uniontech.com> | 2021-09-13 10:22:17 +0800 |
---|---|---|
committer | Gong Weia <gongweia@uniontech.com> | 2021-09-13 17:14:15 +0800 |
commit | 875cd00d27ebcad4826843a66ea2df5e13709b92 (patch) | |
tree | 098345c54f2f6a6f25abc751e88ed19579fc1a24 /src/quick/items/qquicktextinput.cpp | |
parent | 210131c3d443d59356b981a913a0a5ddddbc4e7e (diff) |
qquicktextinput: fix format
add space between "){"
Change-Id: Idcad221bb0643963ce44a9c1660e21b4053f225b
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/quick/items/qquicktextinput.cpp')
-rw-r--r-- | src/quick/items/qquicktextinput.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/quick/items/qquicktextinput.cpp b/src/quick/items/qquicktextinput.cpp index 0f342eb006..6b0babd182 100644 --- a/src/quick/items/qquicktextinput.cpp +++ b/src/quick/items/qquicktextinput.cpp @@ -2578,7 +2578,7 @@ void QQuickTextInput::moveCursorSelection(int pos, SelectionMode mode) if (mode == SelectCharacters) { d->moveCursor(pos, true); - } else if (pos != d->m_cursor){ + } else if (pos != d->m_cursor) { const int cursor = d->m_cursor; int anchor; if (!d->hasSelectedText()) @@ -3299,7 +3299,7 @@ void QQuickTextInputPrivate::setSelection(int start, int length) m_selstart = start; m_selend = qMin(start + length, m_text.length()); m_cursor = m_selend; - } else if (length < 0){ + } else if (length < 0) { if (start == m_selend && start + length == m_selstart && m_cursor == m_selstart) return; m_selstart = qMax(start + length, 0); |