| 77 | // ### TextObjectEditorHelper::BatchEdit ### |
| 78 | |
| 79 | TextObjectEditorHelper::BatchEdit::BatchEdit(not_null<TextObjectEditorHelper*> editor, int actions) |
| 80 | : editor { editor } |
| 81 | { |
| 82 | Q_ASSERT(editor); |
| 83 | Q_ASSERT(editor->batch_editing >= 0); |
| 84 | Q_ASSERT(editor->batch_editing < 5); |
| 85 | |
| 86 | ++editor->batch_editing; |
| 87 | if (editor->batch_editing == 1) |
| 88 | { |
| 89 | editor->state_change_action = actions; |
| 90 | if (actions & CommitPreedit) |
| 91 | editor->commitPreedit(); |
| 92 | } |
| 93 | } |
| 94 | |
| 95 | |
| 96 | TextObjectEditorHelper::BatchEdit::~BatchEdit() |
nothing calls this directly
no test coverage detected