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

Method insert

src/commands.cpp:102–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102void UndoStack::insert(qint64 pos, char c)
103{
104 if ((pos >= 0) && (pos <= _chunks->size()))
105 {
106 QUndoCommand *cc = new CharCommand(_chunks, CharCommand::insert, pos, c);
107 this->push(cc);
108 }
109}
110
111void UndoStack::insert(qint64 pos, const QByteArray &ba)
112{

Callers 2

undoMethod · 0.45
redoMethod · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected