--- a/src/edithistory.cpp Thu Mar 03 21:13:16 2022 +0200 +++ b/src/edithistory.cpp Fri Mar 04 11:37:50 2022 +0200 @@ -24,32 +24,32 @@ } -void InsertHistoryEntry::undo(Model::EditContext &editContext) +void InsertHistoryEntry::undo(ModelEditor &editContext) { editContext.remove(this->position); } -void InsertHistoryEntry::redo(Model::EditContext &editContext) +void InsertHistoryEntry::redo(ModelEditor &editContext) { } -void DeleteHistoryEntry::undo(Model::EditContext &editContext) +void DeleteHistoryEntry::undo(ModelEditor &editContext) { static_cast<InsertHistoryEntry*>(this)->redo(editContext); } -void DeleteHistoryEntry::redo(Model::EditContext &editContext) +void DeleteHistoryEntry::redo(ModelEditor &editContext) { static_cast<InsertHistoryEntry*>(this)->undo(editContext); } -void EditHistoryEntry::undo(Model::EditContext &editContext) +void EditHistoryEntry::undo(ModelEditor &editContext) { } -void EditHistoryEntry::redo(Model::EditContext &editContext) +void EditHistoryEntry::redo(ModelEditor &editContext) { }