src/objecttypes/comment.h

changeset 8
44679e468ba9
parent 6
73e448b2943d
child 13
6e838748867b
--- a/src/objecttypes/comment.h	Sat Oct 05 23:47:03 2019 +0300
+++ b/src/objecttypes/comment.h	Sun Nov 03 12:17:41 2019 +0200
@@ -1,22 +1,14 @@
 #pragma once
 #include "modelobject.h"
+#include "metacommand.h"
 
 namespace modelobjects
 {
 	class Comment;
 }
 
-class modelobjects::Comment : public BaseObject
+class modelobjects::Comment : public MetaCommand
 {
-public:
-	Comment() = default;
-	Comment(QStringView text);
-	QVariant getProperty(Property property) const override;
-	SetPropertyResult setProperty(
-		Property property,
-		const QVariant& value) override;
-	QString textRepresentation() const override;
+	using MetaCommand::MetaCommand;
 	QFont textRepresentationFont() const override;
-private:
-	QString storedText = "";
 };

mercurial