Mon, 23 Sep 2019 14:06:36 +0300
added regular expressions for the parser
#include "comment.h" modelobjects::Comment::Comment(QStringView text) : BaseObject{}, storedText{text.toString()} {} QVariant modelobjects::Comment::getProperty(Property property) const { switch (property) { case Property::Text: return storedText; default: return BaseObject::getProperty(property); } } auto modelobjects::Comment::setProperty(Property property, const QVariant& value) -> SetPropertyResult { switch (property) { case Property::Text: storedText = value.toString(); return SetPropertyResult::Success; default: return BaseObject::setProperty(property, value); } }