| 100 | } |
| 101 | |
| 102 | void 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 | |
| 111 | void UndoStack::insert(qint64 pos, const QByteArray &ba) |
| 112 | { |