| 186 | |
| 187 | |
| 188 | void 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 | |
| 207 | void TextObjectEditorHelper::commitStateChange() |