diff -r 68443f5be176 -r 44679e468ba9 src/objecttypes/errorline.cpp --- a/src/objecttypes/errorline.cpp Sat Oct 05 23:47:03 2019 +0300 +++ b/src/objecttypes/errorline.cpp Sun Nov 03 12:17:41 2019 +0200 @@ -1,8 +1,9 @@ #include #include "errorline.h" -modelobjects::ErrorLine::ErrorLine(QStringView text) : - text{text.toString()} +modelobjects::ErrorLine::ErrorLine(QStringView text, QStringView message) : + text{text.toString()}, + message{message.toString()} { } @@ -11,7 +12,9 @@ switch (property) { case Property::Text: - return text; + return this->text; + case Property::ErrorMessage: + return this->message; default: return BaseObject::getProperty(property); } @@ -25,7 +28,10 @@ switch (property) { case Property::Text: - text = value.toString(); + this->text = value.toString(); + return SetPropertyResult::Success; + case Property::ErrorMessage: + this->message = value.toString(); return SetPropertyResult::Success; default: return BaseObject::setProperty(property, value);