Skip to content
Snippets Groups Projects
Commit 049f8d53 authored by Roberto Raggi's avatar Roberto Raggi
Browse files

TODO: process the edit-ops.

parent 62a15e04
No related branches found
No related tags found
No related merge requests found
......@@ -619,7 +619,36 @@ const Utils::ChangeSet &BaseTextEditor::changeSet() const
void BaseTextEditor::setChangeSet(const Utils::ChangeSet &changeSet)
{
using namespace Utils;
d->m_changeSet = changeSet;
foreach (const ChangeSet::EditOp &op, changeSet.operationList()) {
// ### TODO: process the edit operation
switch (op.type) {
case ChangeSet::EditOp::Replace:
break;
case ChangeSet::EditOp::Move:
break;
case ChangeSet::EditOp::Insert:
break;
case ChangeSet::EditOp::Remove:
break;
case ChangeSet::EditOp::Flip:
break;
case ChangeSet::EditOp::Copy:
break;
default:
break;
} // switch
}
}
Core::IFile *BaseTextEditor::file()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment