src/objecttypes/errorline.cpp

changeset 13
6e838748867b
parent 8
44679e468ba9
--- 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 <QBrush>
 #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};
 }

mercurial