Fix nodes
This commit is contained in:
parent
2e0cb27987
commit
3c1c86f952
6 changed files with 297 additions and 57 deletions
15
gui/BezierConnectionPainter.h
Normal file
15
gui/BezierConnectionPainter.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#pragma once
|
||||
|
||||
#include <QtNodes/internal/AbstractConnectionPainter.hpp>
|
||||
|
||||
class BezierConnectionPainter : public QtNodes::AbstractConnectionPainter {
|
||||
public:
|
||||
void paint(QPainter *painter,
|
||||
QtNodes::ConnectionGraphicsObject const &cgo) const override;
|
||||
QPainterPath
|
||||
getPainterStroke(QtNodes::ConnectionGraphicsObject const &cgo) const override;
|
||||
|
||||
private:
|
||||
QPainterPath
|
||||
cubicPath(QtNodes::ConnectionGraphicsObject const &cgo) const;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue