nodeview: implemented ability to select and delete node edges

This commit is contained in:
itsmattkc
2020-04-29 17:25:41 +10:00
parent 3f77c2ce91
commit 4ac5513e3f
5 changed files with 82 additions and 33 deletions
+5 -4
View File
@@ -89,16 +89,17 @@ public:
*/
void SetFlowDirection(NodeViewCommon::FlowDirection dir);
private:
void UpdatePen();
protected:
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
private:
NodeEdgePtr edge_;
int edge_width_;
QPalette::ColorGroup color_group_;
bool connected_;
QPalette::ColorRole color_role_;
bool highlighted_;
NodeViewCommon::FlowDirection flow_dir_;