| 162 | } |
| 163 | |
| 164 | void ObjectInstance::copy(const ObjectInstance &other) |
| 165 | { |
| 166 | m_obj = other.m_obj; |
| 167 | m_qtObj = other.m_qtObj.data(); |
| 168 | m_variant = other.m_variant; |
| 169 | m_metaObj = other.m_metaObj; |
| 170 | m_typeName = other.m_typeName; |
| 171 | m_type = other.m_type; |
| 172 | |
| 173 | if (m_type == Value || m_type == QtGadgetPointer) |
| 174 | unpackVariant(); // pointer changes when copying the variant |
| 175 | } |
| 176 | |
| 177 | void ObjectInstance::unpackVariant() |
| 178 | { |
no test coverage detected