Sat, 05 Oct 2019 23:47:03 +0300
added the settings editor
3 | 1 | #include "subfilereference.h" |
2 | ||
3 | QVariant modelobjects::SubfileReference::getProperty(Property property) const | |
4 | { | |
5 | switch (property) | |
6 | { | |
7 | case Property::Position: | |
8 | return this->position; | |
9 | case Property::Transformation: | |
10 | return QVariant::fromValue(this->transformation); | |
11 | case Property::ReferenceName: | |
12 | return this->referenceName; | |
13 | default: | |
14 | return ColoredBaseObject::getProperty(property); | |
15 | } | |
16 | } | |
6 | 17 | |
18 | QString modelobjects::SubfileReference::textRepresentation() const | |
19 | { | |
20 | return referenceName + " " + vertexToStringParens(this->position); | |
21 | } |