nodeview: improved and optimized some selection code

This commit is contained in:
itsmattkc
2020-03-02 17:03:03 +11:00
parent f800ca38c3
commit 3e34975dd9
4 changed files with 17 additions and 29 deletions
+5
View File
@@ -42,6 +42,11 @@ void NodeViewScene::SetGraph(NodeGraph *graph)
graph_ = graph;
}
const QHash<Node *, NodeViewItem *> &NodeViewScene::item_map() const
{
return item_map_;
}
void NodeViewScene::AddNode(Node* node)
{
NodeViewItem* item = new NodeViewItem();