MCPcopy Create free account
hub / github.com/KDE/kwin / handleCommitString

Method handleCommitString

src/internalinputmethodcontext.cpp:166–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void InternalInputMethodContext::handleCommitString(const QString &text)
167{
168 QObject *focusObject = QGuiApplication::focusObject();
169 if (!focusObject) {
170 return;
171 }
172
173 QInputMethodEvent event(QString(), {});
174 event.setCommitString(text);
175 QCoreApplication::sendEvent(focusObject, &event);
176}
177
178void InternalInputMethodContext::handleDeleteSurroundingText(int deleteBefore, uint deleteAfter)
179{

Callers 1

commitStringMethod · 0.80

Calls 1

QStringClass · 0.85

Tested by

no test coverage detected