| 94 | // --------------------------------------------------------------------------- |
| 95 | |
| 96 | static Qt::Alignment mapAlignment(TextAlignment a) |
| 97 | { |
| 98 | switch (a) { |
| 99 | case TextAlignment::Center: return Qt::AlignHCenter; |
| 100 | case TextAlignment::Right: return Qt::AlignRight; |
| 101 | default: return Qt::AlignLeft; |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | void TextBoxObject::render(QPainter& painter, qreal zoom) const |
| 106 | { |