nodeview: implemented weighted auto-positioning

Similar to the previous approach, but cleaner and hopefully easier to extend.
This commit is contained in:
itsmattkc
2020-05-06 22:53:01 +10:00
parent af994cd1b6
commit e5e0d0323e
2 changed files with 28 additions and 5 deletions
+2
View File
@@ -114,6 +114,8 @@ public slots:
void RemoveEdge(NodeEdgePtr edge);
private:
static int DetermineWeight(Node* n);
QHash<Node*, NodeViewItem*> item_map_;
QHash<NodeEdge*, NodeViewEdge*> edge_map_;