Tue, 28 Sep 2021 22:14:00 +0300
Fix memory corruption involving document tools.
I don't think that the metaobject-initialization had anything to do with this
but it is a lot simpler without it anyway.
#include <QFont> #include "comment.h" QFont ldraw::Comment::textRepresentationFont() const { QFont font; font.setItalic(true); return font; } ldraw::Object::Type ldraw::Comment::typeIdentifier() const { return Type::Comment; } QString ldraw::Comment::toLDrawCode() const { return ("0 // " + this->storedText).trimmed(); }