bezier node edges

This commit is contained in:
itsmattkc
2019-04-12 02:23:50 +10:00
parent a0f1dfef0e
commit 4e4d2b1881
2 changed files with 36 additions and 9 deletions
+5 -1
View File
@@ -22,12 +22,16 @@ protected:
virtual void mouseReleaseEvent(QGraphicsSceneMouseEvent *event) override;
private:
QVector<QRectF> GetNodeSocketRects();
QPainterPath GetEdgePath(const QPointF& start_pos, const QPointF& end_pos);
EffectUI* central_widget_;
QGraphicsProxyWidget* proxy_;
QPainterPath path_;
bool clicked_socket_;
QGraphicsPathItem* drag_line_;
QPointF drag_line_start_;
int clicked_socket_;
};
#endif // NODEUI_H