[nostalgia/studio] Move undo stack to Editor

This commit is contained in:
2020-03-23 23:25:05 -05:00
parent 362aeef3c7
commit f90a6e30ea
4 changed files with 22 additions and 26 deletions
+4 -4
View File
@@ -13,10 +13,6 @@ namespace nostalgia::studio {
Editor::Editor(QWidget *parent): QWidget(parent) {
}
QUndoStack *Editor::undoStack() {
return nullptr;
}
void Editor::save() {
saveItem();
setUnsavedChanges(false);
@@ -27,6 +23,10 @@ void Editor::setUnsavedChanges(bool uc) {
emit unsavedChangesUpdate(uc);
}
QUndoStack *Editor::undoStack() {
return &m_cmdStack;
}
void Editor::saveItem() {
}