src/linetypes/comment.cpp

Wed, 09 Mar 2022 13:14:40 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Wed, 09 Mar 2022 13:14:40 +0200
changeset 174
3016b494685c
parent 141
185eb297dc1e
permissions
-rw-r--r--

show unnamed tabs as "<unnamed>" in the tab list

#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