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

Method updateDisplayText

src/tools/text_object_editor_helper.cpp:265–274  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

263
264
265void TextObjectEditorHelper::updateDisplayText()
266{
267 // Insert the preedit string into the displayed text.
268 auto displayed_text = pristine_text;
269 displayed_text.insert(cursor_position, preedit_string);
270 if (text_object->getText() != displayed_text)
271 {
272 text_object->setText(displayed_text);
273 }
274}
275
276
277

Callers

nothing calls this directly

Calls 2

insertMethod · 0.45
setTextMethod · 0.45

Tested by

no test coverage detected