Wed, 22 Sep 2021 00:25:31 +0300
Merge commit
#include "edithistory.h" EditHistory::EditHistory() { } void InsertHistoryEntry::undo(Model::EditContext &editContext) { editContext.remove(this->position); } void InsertHistoryEntry::redo(Model::EditContext &editContext) { } void DeleteHistoryEntry::undo(Model::EditContext &editContext) { static_cast<InsertHistoryEntry*>(this)->redo(editContext); } void DeleteHistoryEntry::redo(Model::EditContext &editContext) { static_cast<InsertHistoryEntry*>(this)->undo(editContext); } void EditHistoryEntry::undo(Model::EditContext &editContext) { } void EditHistoryEntry::redo(Model::EditContext &editContext) { }