feat: connect nodes

This commit is contained in:
parker
2025-06-21 03:00:38 +01:00
parent a6a0bec1c0
commit 38508293ff
6 changed files with 59 additions and 14 deletions

View File

@@ -15,10 +15,13 @@ public:
SocketGraphic* getInput(int indx) const;
SocketGraphic* getOutput(int indx) const;
void addEdge(NodeEdgeGraphic* edge);
// void addEdge(NodeEdgeGraphic* edge);
void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override;
// void setInputEdge(NodeEdgeGraphic* edge, int indx);
// void setOutputEdge(NodeEdgeGraphic* edge, int indx);
@@ -27,7 +30,7 @@ private:
std::vector<SocketGraphic*> inputs_;
std::vector<SocketGraphic*> outputs_;
std::vector<NodeEdgeGraphic*> edges_;
// std::vector<NodeEdgeGraphic*> edges_;
std::string title_="";
int maxTitleLen_=10;