src/linetypes/comment.cpp

Sat, 05 Mar 2022 17:18:44 +0200

author
Teemu Piippo <teemu@hecknology.net>
date
Sat, 05 Mar 2022 17:18:44 +0200
changeset 169
6da096930534
parent 141
185eb297dc1e
permissions
-rw-r--r--

Added the delete action

#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