MCPcopy Create free account
hub / github.com/Simsys/qhexedit2 / redo

Method redo

src/commands.cpp:74–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74void CharCommand::redo()
75{
76 switch (_cmd)
77 {
78 case insert:
79 _chunks->insert(_charPos, _newChar);
80 break;
81 case overwrite:
82 _oldChar = (*_chunks)[_charPos];
83 _wasChanged = _chunks->dataChanged(_charPos);
84 _chunks->overwrite(_charPos, _newChar);
85 break;
86 case removeAt:
87 _oldChar = (*_chunks)[_charPos];
88 _wasChanged = _chunks->dataChanged(_charPos);
89 _chunks->removeAt(_charPos);
90 break;
91 }
92}
93
94UndoStack::UndoStack(Chunks * chunks, QObject * parent)
95 : QUndoStack(parent)

Callers

nothing calls this directly

Calls 4

insertMethod · 0.45
dataChangedMethod · 0.45
overwriteMethod · 0.45
removeAtMethod · 0.45

Tested by

no test coverage detected