diff -r 593a658cba8e -r 73e448b2943d src/objecttypes/comment.cpp --- 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 #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; +}