basic auto-positioning implementation

Not perfect by any means, but nodes are now automatically placed in relation to
their surroundings and connections.
This commit is contained in:
itsmattkc
2020-01-09 01:41:23 +11:00
parent 1b34c5566d
commit 7018973d09
2 changed files with 251 additions and 0 deletions
+6
View File
@@ -88,6 +88,12 @@ signals:
void SelectionChanged(QList<Node*> selected_nodes);
private:
void PlaceNode(NodeViewItem* n, const QPointF& pos);
void ReorganizeInternal(NodeViewItem *src_item, QList<Node *> &positioned_nodes);
void Reorganize();
NodeGraph* graph_;
QGraphicsScene scene_;