comparison: src/linetypes/comment.cpp
src/linetypes/comment.cpp
- changeset 176
- cd9d6bf6f649
- parent 174
- 3016b494685c
- child 177
- f69d53c053df
equal
deleted
inserted
replaced
1 #include <QFont> |
|
2 #include "comment.h" |
|
3 |
|
4 QFont ldraw::Comment::textRepresentationFont() const |
|
5 { |
|
6 QFont font; |
|
7 font.setItalic(true); |
|
8 return font; |
|
9 } |
|
10 |
|
11 ldraw::Object::Type ldraw::Comment::typeIdentifier() const |
|
12 { |
|
13 return Type::Comment; |
|
14 } |
|
15 |
|
16 QString ldraw::Comment::toLDrawCode() const |
|
17 { |
|
18 return ("0 // " + this->storedText).trimmed(); |
|
19 } |
|
20 |
|