nodeview: added setting for curved/straight edges

This commit is contained in:
itsmattkc
2020-05-10 04:33:37 +10:00
parent ed82061b51
commit 9c30f13a2e
6 changed files with 70 additions and 16 deletions
+7
View File
@@ -89,6 +89,11 @@ public:
*/
void SetFlowDirection(NodeViewCommon::FlowDirection dir);
/**
* @brief Set whether edges should be drawn as curved or as straight lines
*/
void SetCurved(bool e);
protected:
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget = nullptr) override;
@@ -103,6 +108,8 @@ private:
NodeViewCommon::FlowDirection flow_dir_;
bool curved_;
};
OLIVE_NAMESPACE_EXIT