--- a/src/objecttypes/errorline.cpp Thu Oct 03 11:45:44 2019 +0300 +++ b/src/objecttypes/errorline.cpp Thu Oct 03 23:44:28 2019 +0300 @@ -1,3 +1,4 @@ +#include <QBrush> #include "errorline.h" modelobjects::ErrorLine::ErrorLine(QStringView text) : @@ -30,3 +31,18 @@ return BaseObject::setProperty(property, value); } } + +QString modelobjects::ErrorLine::textRepresentation() const +{ + return this->text; +} + +QBrush modelobjects::ErrorLine::textRepresentationForeground() const +{ + return QBrush{Qt::yellow}; +} + +QBrush modelobjects::ErrorLine::textRepresentationBackground() const +{ + return QBrush{Qt::red}; +}