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

Method writeProperty

core/dynamicpropertyadaptor.cpp:63–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void 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
73bool DynamicPropertyAdaptor::canAddProperty() const
74{

Callers

nothing calls this directly

Calls 5

objectFunction · 0.85
qtObjectMethod · 0.80
isValidMethod · 0.45
sizeMethod · 0.45
setPropertyMethod · 0.45

Tested by

no test coverage detected