preliminary support for multiple timeline sections

This commit is contained in:
itsmattkc
2019-10-05 07:33:27 +10:00
parent ea4f6f43c4
commit 3411e45774
26 changed files with 897 additions and 363 deletions
+5 -3
View File
@@ -20,8 +20,6 @@
#include "graph.h"
#include "common/qobjectlistcast.h"
NodeGraph::NodeGraph()
{
@@ -38,6 +36,8 @@ void NodeGraph::AddNode(Node *node)
connect(node, SIGNAL(EdgeAdded(NodeEdgePtr)), this, SIGNAL(EdgeAdded(NodeEdgePtr)));
connect(node, SIGNAL(EdgeRemoved(NodeEdgePtr)), this, SIGNAL(EdgeRemoved(NodeEdgePtr)));
node_children_.append(node);
emit NodeAdded(node);
}
@@ -71,6 +71,8 @@ void NodeGraph::TakeNode(Node *node, QObject* new_parent)
node->setParent(new_parent);
node_children_.removeAll(node);
emit NodeRemoved(node);
}
@@ -91,7 +93,7 @@ QList<Node *> NodeGraph::TakeNodeWithItsDependencies(Node *node, QObject *new_pa
QList<Node *> NodeGraph::nodes()
{
return static_qobjectlist_cast<Node>(children());
return node_children_;
}
bool NodeGraph::ContainsNode(Node *n)