summaryrefslogtreecommitdiff
path: root/src/data/nodestyle.cpp
diff options
context:
space:
mode:
authorAleks Kissinger <aleks0@gmail.com>2018-03-17 19:01:02 -0400
committerAleks Kissinger <aleks0@gmail.com>2018-03-17 19:01:02 -0400
commit3cea1514203a451c0a8806d276807863b463a78f (patch)
treed6850ab0f41a6d85f3504e8c92fcecf79b37689b /src/data/nodestyle.cpp
parent39c2c74c664a6c770639ead8f45322352cacb997 (diff)
added saving, style application, and copy and paste
Diffstat (limited to 'src/data/nodestyle.cpp')
-rw-r--r--src/data/nodestyle.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/data/nodestyle.cpp b/src/data/nodestyle.cpp
index e38d3a3..302ab84 100644
--- a/src/data/nodestyle.cpp
+++ b/src/data/nodestyle.cpp
@@ -24,13 +24,13 @@ QString NodeStyle::name() const
return _name;
}
-NodeShape NodeStyle::shape() const
+NodeStyle::Shape NodeStyle::shape() const
{
QString sh = _data->property("shape");
- if (sh.isNull()) return NodeShape::Circle;
- else if (sh == "circle") return NodeShape::Circle;
- else if (sh == "rectangle") return NodeShape::Rectangle;
- else return NodeShape::Circle;
+ if (sh.isNull()) return NodeStyle::Circle;
+ else if (sh == "circle") return NodeStyle::Circle;
+ else if (sh == "rectangle") return NodeStyle::Rectangle;
+ else return NodeStyle::Circle;
}
QColor NodeStyle::fillColor() const