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

Method addProperty

core/propertyaggregator.cpp:95–110  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93}
94
95void PropertyAggregator::addProperty(const PropertyData &data)
96{
97 if (!object().isValid())
98 return;
99
100 Q_ASSERT(canAddProperty());
101
102 for (const auto adaptor : std::as_const(m_propertyAdaptors)) {
103 if (adaptor->canAddProperty()) {
104 adaptor->addProperty(data);
105 return;
106 }
107 }
108
109 Q_ASSERT(false);
110}
111
112void PropertyAggregator::resetProperty(int index)
113{

Callers

nothing calls this directly

Calls 3

objectFunction · 0.85
isValidMethod · 0.45
canAddPropertyMethod · 0.45

Tested by

no test coverage detected