diff -r 68443f5be176 -r 44679e468ba9 src/objecttypes/comment.h --- 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 = ""; };