| 13 default: |
13 default: |
| 14 return Object::getProperty(property); |
14 return Object::getProperty(property); |
| 15 } |
15 } |
| 16 } |
16 } |
| 17 |
17 |
| 18 auto ldraw::MetaCommand::setProperty(Property property, const QVariant& value) |
18 void ldraw::MetaCommand::setProperty(ldraw::Object::SetPropertyResult* result, const PropertyKeyValue& pair) |
| 19 -> SetPropertyResult |
|
| 20 { |
19 { |
| 21 switch (property) |
20 LDRAW_OBJECT_HANDLE_SET_PROPERTY(Text, {this->storedText = value;}); |
| 22 { |
21 BaseClass::setProperty(result, pair); |
| 23 case Property::Text: |
|
| 24 storedText = value.toString(); |
|
| 25 return SetPropertyResult::Success; |
|
| 26 default: |
|
| 27 return Object::setProperty(property, value); |
|
| 28 } |
|
| 29 } |
22 } |
| 30 |
23 |
| 31 QString ldraw::MetaCommand::textRepresentation() const |
24 QString ldraw::MetaCommand::textRepresentation() const |
| 32 { |
25 { |
| 33 return this->storedText; |
26 return this->storedText; |
| 34 } |
27 } |
| |
28 |