| 61 | } |
| 62 | |
| 63 | void DynamicPropertyAdaptor::writeProperty(int index, const QVariant &value) |
| 64 | { |
| 65 | if (!object().isValid()) |
| 66 | return; |
| 67 | Q_ASSERT(index < m_propNames.size()); |
| 68 | |
| 69 | const auto &propName = m_propNames.at(index); |
| 70 | object().qtObject()->setProperty(propName, value); |
| 71 | } |
| 72 | |
| 73 | bool DynamicPropertyAdaptor::canAddProperty() const |
| 74 | { |
nothing calls this directly
no test coverage detected