diff options
author | Aleks Kissinger <aleks0@gmail.com> | 2018-03-17 19:01:02 -0400 |
---|---|---|
committer | Aleks Kissinger <aleks0@gmail.com> | 2018-03-17 19:01:02 -0400 |
commit | 3cea1514203a451c0a8806d276807863b463a78f (patch) | |
tree | d6850ab0f41a6d85f3504e8c92fcecf79b37689b /src/data/nodestyle.cpp | |
parent | 39c2c74c664a6c770639ead8f45322352cacb997 (diff) |
added saving, style application, and copy and paste
Diffstat (limited to 'src/data/nodestyle.cpp')
-rw-r--r-- | src/data/nodestyle.cpp | 10 |
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 |