various small code cleanups and improvements

Largely refactoring work to make the code somewhat nicer to work with.
This commit is contained in:
itsmattkc
2019-12-26 19:00:08 +11:00
parent 83077c939e
commit 61c60e00d6
87 changed files with 596 additions and 567 deletions
+3 -3
View File
@@ -20,9 +20,9 @@
#include "nodeview.h"
#include "core.h"
#include "nodeviewundo.h"
#include "node/factory.h"
#include "undo/undostack.h"
NodeView::NodeView(QWidget *parent) :
QGraphicsView(parent),
@@ -142,7 +142,7 @@ void NodeView::DeleteSelected()
return;
}
olive::undo_stack.push(new NodeRemoveCommand(graph_, selected_nodes));
Core::instance()->undo_stack()->push(new NodeRemoveCommand(graph_, selected_nodes));
}
void NodeView::AddNode(Node* node)
@@ -244,6 +244,6 @@ void NodeView::CreateNodeSlot(QAction *action)
Node* new_node = NodeFactory::CreateFromMenuAction(action);
if (new_node) {
olive::undo_stack.push(new NodeAddCommand(graph_, new_node));
Core::instance()->undo_stack()->push(new NodeAddCommand(graph_, new_node));
}
}