src/linetypes/comment.cpp

Fri, 04 Mar 2022 11:40:19 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Fri, 04 Mar 2022 11:40:19 +0200
changeset 153
2f79053c2e9a
parent 141
185eb297dc1e
permissions
-rw-r--r--

Renamed modeleditcontext.cpp -> modeleditor.cpp

#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();
}

mercurial