nodeview: support multiple flow directions
This commit is contained in:
@@ -25,6 +25,7 @@
|
||||
#include <QPalette>
|
||||
|
||||
#include "node/edge.h"
|
||||
#include "nodeviewcommon.h"
|
||||
|
||||
OLIVE_NAMESPACE_ENTER
|
||||
|
||||
@@ -83,6 +84,11 @@ public:
|
||||
*/
|
||||
void SetPoints(const QPointF& start, const QPointF& end);
|
||||
|
||||
/**
|
||||
* @brief Sets the direction nodes are flowing
|
||||
*/
|
||||
void SetFlowDirection(NodeViewCommon::FlowDirection dir);
|
||||
|
||||
private:
|
||||
void UpdatePen();
|
||||
|
||||
@@ -94,6 +100,8 @@ private:
|
||||
|
||||
QPalette::ColorRole color_role_;
|
||||
|
||||
NodeViewCommon::FlowDirection flow_dir_;
|
||||
|
||||
};
|
||||
|
||||
OLIVE_NAMESPACE_EXIT
|
||||
|
||||
Reference in New Issue
Block a user