| 263 | |
| 264 | |
| 265 | void 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 |