[plasma/kwin] src: inputmethod: fix typos in InternalInputMethodContext
Kai Li <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit e533921a0d98b4a793c74fde9737d084ccef17e8 by Kai Li, on behalf of Li Kai.
Committed on 23/07/2026 at 01:57.
Pushed by vladz into branch 'master'.
inputmethod: fix typos in InternalInputMethodContext
M +4 -4 src/internalinputmethodcontext.cpp
https://invent.kde.org/plasma/kwin/-/commit/e533921a0d98b4a793c74fde9737d084ccef17e8
diff --git a/src/internalinputmethodcontext.cpp b/src/internalinputmethodcontext.cpp
index f0c8a130393..d7a336db568 100644
--- a/src/internalinputmethodcontext.cpp
+++ b/src/internalinputmethodcontext.cpp
@@ -70,7 +70,7 @@ void InternalInputMethodContext::update(Qt::InputMethodQueries queries)
}
if (queries & Qt::ImHints) {
- // When kwin gets some text input with numbers and passwords this needs pouplating
+ // When kwin gets some text input with numbers and passwords this needs populating
}
if (queries & Qt::ImEnabled) {
@@ -181,7 +181,7 @@ void InternalInputMethodContext::handleDeleteSurroundingText(int deleteBefore, u
if (!focusObject) {
return;
}
- // insprired by QtWayland client code
+ // inspired by QtWayland client code
const QString &surrounding = QInputMethod::queryFocusObject(Qt::ImSurroundingText, QVariant()).toString();
const int cursor = QInputMethod::queryFocusObject(Qt::ImCursorPosition, QVariant()).toInt();
const int anchor = QInputMethod::queryFocusObject(Qt::ImAnchorPosition, QVariant()).toInt();
@@ -189,11 +189,11 @@ void InternalInputMethodContext::handleDeleteSurroundingText(int deleteBefore, u
const int selectionStart = qMin(cursor, anchor);
const int selectionEnd = qMax(cursor, anchor);
- const int deleteBeforeTrasnslated = selectionStart - indexFromWayland(surrounding, -deleteBefore, selectionStart);
+ const int deleteBeforeTranslated = selectionStart - indexFromWayland(surrounding, -deleteBefore, selectionStart);
const int deleteAfterTranslated = indexFromWayland(surrounding, deleteAfter, selectionEnd) - selectionEnd;
QInputMethodEvent event(QString(), {});
- event.setCommitString(QString(), deleteBeforeTrasnslated, deleteAfterTranslated);
+ event.setCommitString(QString(), deleteBeforeTranslated, deleteAfterTranslated);
QCoreApplication::sendEvent(focusObject, &event);
}