MCPcopy Create free account
hub / github.com/KDAB/GammaRay / writeProperty

Method writeProperty

core/metapropertyadaptor.cpp:90–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90void 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}

Callers

nothing calls this directly

Calls 5

objectFunction · 0.85
propertyAtMethod · 0.80
castForPropertyAtMethod · 0.80
isValidMethod · 0.45
setValueMethod · 0.45

Tested by

no test coverage detected