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

Method BatchEdit

src/tools/text_object_editor_helper.cpp:79–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77// ### TextObjectEditorHelper::BatchEdit ###
78
79TextObjectEditorHelper::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
96TextObjectEditorHelper::BatchEdit::~BatchEdit()

Callers

nothing calls this directly

Calls 1

commitPreeditMethod · 0.80

Tested by

no test coverage detected