Sat, 05 Mar 2022 18:26:18 +0200
Added a toggle for setting whether axes are drawn
6 | 1 | #include <QFont> |
3 | 2 | #include "comment.h" |
3 | ||
35
98906a94732f
renamed the linetypes namespace to ldraw namespace and added more structures to it
Teemu Piippo <teemu@hecknology.net>
parents:
14
diff
changeset
|
4 | QFont ldraw::Comment::textRepresentationFont() const |
6 | 5 | { |
6 | QFont font; | |
7 | font.setItalic(true); | |
8 | return font; | |
9 | } | |
132
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
10 | |
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
11 | ldraw::Object::Type ldraw::Comment::typeIdentifier() const |
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
12 | { |
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
13 | return Type::Comment; |
488d0ba6070b
Begin work with serialization
Teemu Piippo <teemu@hecknology.net>
parents:
35
diff
changeset
|
14 | } |
134
f77d2230e87c
Add remaining serialize methods
Teemu Piippo <teemu@hecknology.net>
parents:
132
diff
changeset
|
15 | |
141 | 16 | QString ldraw::Comment::toLDrawCode() const |
17 | { | |
18 | return ("0 // " + this->storedText).trimmed(); | |
19 | } | |
20 |