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

Method descendantOf

core/util.cpp:86–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86bool Util::descendantOf(const QObject *ascendant, const QObject *object)
87{
88 QObject *parent = object->parent();
89 if (!parent)
90 return false;
91 if (parent == ascendant)
92 return true;
93 return descendantOf(ascendant, parent);
94}
95
96namespace GammaRay {
97static QString stringifyProperty(const QObject *obj, const QString &propName)

Callers

nothing calls this directly

Calls 1

parentMethod · 0.45

Tested by

no test coverage detected