| 32 | QuickAnchorsPropertyAdaptor::~QuickAnchorsPropertyAdaptor() = default; |
| 33 | |
| 34 | void QuickAnchorsPropertyAdaptor::doSetObject(const ObjectInstance &oi) |
| 35 | { |
| 36 | m_anchorsPropertyIndex = -1; |
| 37 | auto mo = oi.metaObject(); |
| 38 | if (!mo || oi.type() != ObjectInstance::QtObject || !oi.qtObject()) |
| 39 | return; |
| 40 | |
| 41 | int propertyIndex = mo->indexOfProperty("anchors"); |
| 42 | if (propertyIndex == -1) |
| 43 | return; |
| 44 | |
| 45 | const auto prop = mo->property(propertyIndex); |
| 46 | if (QString::compare(prop.typeName(), "QQuickAnchors*") != 0) |
| 47 | return; |
| 48 | |
| 49 | m_anchorsPropertyIndex = propertyIndex; |
| 50 | } |
| 51 | |
| 52 | int QuickAnchorsPropertyAdaptor::count() const |
| 53 | { |
nothing calls this directly
no test coverage detected