MCPcopy Create free account
hub / github.com/clementgallet/libTAS / undo

Method undo

src/external/qhexview/src/model/commands/removecommand.cpp:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9}
10
11void RemoveCommand::undo() {
12 m_buffer->insert(m_offset, m_data);
13 Q_EMIT m_hexdocument->dataChanged(m_data, m_offset,
14 QHexDocument::ChangeReason::Insert);
15}
16
17void RemoveCommand::redo() {
18 m_data = m_buffer->read(m_offset, m_length); // Backup data

Callers

nothing calls this directly

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected