src/objecttypes/errorline.cpp

changeset 6
73e448b2943d
parent 3
55a55a9ec2c2
child 8
44679e468ba9
--- 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};
+}

mercurial