src/objecttypes/comment.cpp

changeset 6
73e448b2943d
parent 3
55a55a9ec2c2
child 8
44679e468ba9
--- a/src/objecttypes/comment.cpp	Thu Oct 03 11:45:44 2019 +0300
+++ b/src/objecttypes/comment.cpp	Thu Oct 03 23:44:28 2019 +0300
@@ -1,3 +1,4 @@
+#include <QFont>
 #include "comment.h"
 
 modelobjects::Comment::Comment(QStringView text) :
@@ -27,3 +28,15 @@
 		return BaseObject::setProperty(property, value);
 	}
 }
+
+QString modelobjects::Comment::textRepresentation() const
+{
+	return this->storedText;
+}
+
+QFont modelobjects::Comment::textRepresentationFont() const
+{
+	QFont font;
+	font.setItalic(true);
+	return font;
+}

mercurial