--- 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 <QBrush> #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);