| 84 | } |
| 85 | |
| 86 | bool 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 | |
| 96 | namespace GammaRay { |
| 97 | static QString stringifyProperty(const QObject *obj, const QString &propName) |