| 88 | } |
| 89 | |
| 90 | void MetaPropertyAdaptor::writeProperty(int index, const QVariant &value) |
| 91 | { |
| 92 | if (!object().isValid()) |
| 93 | return; |
| 94 | |
| 95 | Q_ASSERT(m_metaObj && m_obj); |
| 96 | const auto prop = m_metaObj->propertyAt(index); |
| 97 | prop->setValue(m_metaObj->castForPropertyAt(m_obj, index), value); |
| 98 | emit propertyChanged(index, index); |
| 99 | } |
nothing calls this directly
no test coverage detected