src/objecttypes/comment.cpp

changeset 6
73e448b2943d
parent 3
55a55a9ec2c2
child 8
44679e468ba9
equal deleted inserted replaced
5:593a658cba8e 6:73e448b2943d
1 #include <QFont>
1 #include "comment.h" 2 #include "comment.h"
2 3
3 modelobjects::Comment::Comment(QStringView text) : 4 modelobjects::Comment::Comment(QStringView text) :
4 BaseObject{}, 5 BaseObject{},
5 storedText{text.toString()} {} 6 storedText{text.toString()} {}
25 return SetPropertyResult::Success; 26 return SetPropertyResult::Success;
26 default: 27 default:
27 return BaseObject::setProperty(property, value); 28 return BaseObject::setProperty(property, value);
28 } 29 }
29 } 30 }
31
32 QString modelobjects::Comment::textRepresentation() const
33 {
34 return this->storedText;
35 }
36
37 QFont modelobjects::Comment::textRepresentationFont() const
38 {
39 QFont font;
40 font.setItalic(true);
41 return font;
42 }

mercurial