src/linetypes/comment.cpp

Tue, 28 Sep 2021 22:17:52 +0300

author
Teemu Piippo <teemu@hecknology.net>
date
Tue, 28 Sep 2021 22:17:52 +0300
changeset 144
5d73a6717321
parent 141
185eb297dc1e
permissions
-rw-r--r--

Fix handling of "BFC INVERTNEXT" with multiple inner whitespaces

#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