summaryrefslogtreecommitdiff
path: root/src/data/edge.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2020-04-12 16:43:44 +0100
committerAleks Kissinger <aleks0@gmail.com>2020-04-12 16:43:44 +0100
commitd9ec25d1bcea4e45d1965e95bb3099c3864e04a0 (patch)
tree181ddebe4d8c47d751d7cdbb0e27da8326d93d35 /src/data/edge.cpp
parentc56b682750e9f2a911a841e89e4e51b7d0608ab5 (diff)
parsing and outputting complex paths
Diffstat (limited to 'src/data/edge.cpp')
-rw-r--r--src/data/edge.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/data/edge.cpp b/src/data/edge.cpp
index 0bd49e8..652b480 100644
--- a/src/data/edge.cpp
+++ b/src/data/edge.cpp
@@ -28,6 +28,7 @@ Edge::Edge(Node *s, Node *t, QObject *parent) :
{
_data = new GraphElementData(this);
_edgeNode = nullptr;
+ _path = nullptr;
_dirty = true;
if (s != t) {
@@ -436,3 +437,13 @@ QPointF Edge::bezierTangent(qreal start, qreal end) const
return QPointF(dx, dy);
}
+
+Path *Edge::path() const
+{
+ return _path;
+}
+
+void Edge::setPath(Path *path)
+{
+ _path = path;
+}