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 }; |