MCPcopy Create free account
hub / github.com/OpenOrienteering/mapper / commitPreedit

Method commitPreedit

src/tools/text_object_editor_helper.cpp:188–204  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186
187
188void TextObjectEditorHelper::commitPreedit()
189{
190 if (isPreediting())
191 {
192#ifdef DEBUG_INPUT_METHOD_SUPPORT
193 qDebug("\n>>> inputMethod()->commit()");
194#endif
195 QGuiApplication::inputMethod()->commit();
196 if (Q_UNLIKELY(isPreediting()))
197 {
198 preedit_string.clear();
199 preedit_cursor = 0;
200 text_object->setText(pristine_text);
201 dirty = true;
202 }
203 }
204}
205
206
207void TextObjectEditorHelper::commitStateChange()

Callers 1

BatchEditMethod · 0.80

Calls 3

commitMethod · 0.80
clearMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected