src/objecttypes/comment.h

changeset 8
44679e468ba9
parent 6
73e448b2943d
child 13
6e838748867b
equal deleted inserted replaced
7:68443f5be176 8:44679e468ba9
1 #pragma once 1 #pragma once
2 #include "modelobject.h" 2 #include "modelobject.h"
3 #include "metacommand.h"
3 4
4 namespace modelobjects 5 namespace modelobjects
5 { 6 {
6 class Comment; 7 class Comment;
7 } 8 }
8 9
9 class modelobjects::Comment : public BaseObject 10 class modelobjects::Comment : public MetaCommand
10 { 11 {
11 public: 12 using MetaCommand::MetaCommand;
12 Comment() = default;
13 Comment(QStringView text);
14 QVariant getProperty(Property property) const override;
15 SetPropertyResult setProperty(
16 Property property,
17 const QVariant& value) override;
18 QString textRepresentation() const override;
19 QFont textRepresentationFont() const override; 13 QFont textRepresentationFont() const override;
20 private:
21 QString storedText = "";
22 }; 14 };

mercurial