src/objecttypes/comment.cpp

changeset 8
44679e468ba9
parent 6
73e448b2943d
child 13
6e838748867b
--- a/src/objecttypes/comment.cpp	Sat Oct 05 23:47:03 2019 +0300
+++ b/src/objecttypes/comment.cpp	Sun Nov 03 12:17:41 2019 +0200
@@ -1,39 +1,6 @@
 #include <QFont>
 #include "comment.h"
 
-modelobjects::Comment::Comment(QStringView text) :
-	BaseObject{},
-	storedText{text.toString()} {}
-
-QVariant modelobjects::Comment::getProperty(Property property) const
-{
-	switch (property)
-	{
-	case Property::Text:
-		return storedText;
-	default:
-		return BaseObject::getProperty(property);
-	}
-}
-
-auto modelobjects::Comment::setProperty(Property property, const QVariant& value)
-	-> SetPropertyResult
-{
-	switch (property)
-	{
-	case Property::Text:
-		storedText = value.toString();
-		return SetPropertyResult::Success;
-	default:
-		return BaseObject::setProperty(property, value);
-	}
-}
-
-QString modelobjects::Comment::textRepresentation() const
-{
-	return this->storedText;
-}
-
 QFont modelobjects::Comment::textRepresentationFont() const
 {
 	QFont font;

mercurial