| 150 | } |
| 151 | |
| 152 | void TextObject::copyFrom(const Object& other) |
| 153 | { |
| 154 | if (&other == this) |
| 155 | return; |
| 156 | |
| 157 | Object::copyFrom(other); |
| 158 | const TextObject& other_text = *other.asText(); |
| 159 | text = other_text.text; |
| 160 | h_align = other_text.h_align; |
| 161 | v_align = other_text.v_align; |
| 162 | has_single_anchor = other_text.has_single_anchor; |
| 163 | size = other_text.size; |
| 164 | line_infos = other_text.line_infos; |
| 165 | } |
| 166 | |
| 167 | void TextObject::setAnchorPosition(qint32 x, qint32 y) |
| 168 | { |