| 212 | } |
| 213 | |
| 214 | QString Util::tooltipForObject(const QObject *object) |
| 215 | { |
| 216 | static const auto tip = qApp->translate("GammaRay::Util", |
| 217 | "<p style='white-space:pre'>Object name: %1 (Address: %2)\nType: %3\nParent: %4 (Address: %5)\nNumber of children: %6</p>"); |
| 218 | |
| 219 | return tip.arg( |
| 220 | object->objectName().isEmpty() ? QStringLiteral("<Not set>") : object->objectName(), |
| 221 | Util::addressToString(object), |
| 222 | object->metaObject()->className(), |
| 223 | object->parent() ? object->parent()->metaObject()->className() : QStringLiteral("<No parent>"), |
| 224 | Util::addressToString(object->parent()), |
| 225 | QString::number(object->children().size())); |
| 226 | } |
| 227 | |
| 228 | void Util::drawTransparencyPattern(QPainter *painter, const QRect &rect, int squareSize) |
| 229 | { |
nothing calls this directly
no test coverage detected