| 36 | } |
| 37 | |
| 38 | void UndoManager::undo() |
| 39 | { |
| 40 | if (mPosition == mOperations.GetSize() - 1) |
| 41 | return; |
| 42 | |
| 43 | setUnsaved(true); |
| 44 | |
| 45 | mPosition++; |
| 46 | mEditorWidgets->clear(); |
| 47 | mEditorWidgets->loadxmlDocument(mOperations[mPosition]); |
| 48 | } |
| 49 | |
| 50 | void UndoManager::redo() |
| 51 | { |
nothing calls this directly
no test coverage detected