| 147 | } |
| 148 | |
| 149 | void UndoStack::overwrite(qint64 pos, char c) |
| 150 | { |
| 151 | if ((pos >= 0) && (pos < _chunks->size())) |
| 152 | { |
| 153 | QUndoCommand *cc = new CharCommand(_chunks, CharCommand::overwrite, pos, c); |
| 154 | this->push(cc); |
| 155 | } |
| 156 | } |
| 157 | |
| 158 | void UndoStack::overwrite(qint64 pos, int len, const QByteArray &ba) |
| 159 | { |