diff -r fe67489523b5 -r 6e838748867b src/objecttypes/errorline.cpp --- a/src/objecttypes/errorline.cpp Sun Nov 03 17:57:21 2019 +0200 +++ b/src/objecttypes/errorline.cpp Sun Nov 03 18:09:47 2019 +0200 @@ -1,13 +1,13 @@ #include #include "errorline.h" -modelobjects::ErrorLine::ErrorLine(QStringView text, QStringView message) : +linetypes::ErrorLine::ErrorLine(QStringView text, QStringView message) : text{text.toString()}, message{message.toString()} { } -QVariant modelobjects::ErrorLine::getProperty(Property property) const +QVariant linetypes::ErrorLine::getProperty(Property property) const { switch (property) { @@ -16,11 +16,11 @@ case Property::ErrorMessage: return this->message; default: - return BaseObject::getProperty(property); + return Object::getProperty(property); } } -auto modelobjects::ErrorLine::setProperty( +auto linetypes::ErrorLine::setProperty( Property property, const QVariant& value) -> SetPropertyResult @@ -34,21 +34,21 @@ this->message = value.toString(); return SetPropertyResult::Success; default: - return BaseObject::setProperty(property, value); + return Object::setProperty(property, value); } } -QString modelobjects::ErrorLine::textRepresentation() const +QString linetypes::ErrorLine::textRepresentation() const { return this->text; } -QBrush modelobjects::ErrorLine::textRepresentationForeground() const +QBrush linetypes::ErrorLine::textRepresentationForeground() const { return QBrush{Qt::yellow}; } -QBrush modelobjects::ErrorLine::textRepresentationBackground() const +QBrush linetypes::ErrorLine::textRepresentationBackground() const { return QBrush{Qt::red}; }