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

Method tooltipForObject

core/util.cpp:214–226  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214QString 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("&lt;Not set&gt;") : 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
228void Util::drawTransparencyPattern(QPainter *painter, const QRect &rect, int squareSize)
229{

Callers

nothing calls this directly

Calls 8

addressToStringFunction · 0.85
translateMethod · 0.80
isEmptyMethod · 0.45
classNameMethod · 0.45
metaObjectMethod · 0.45
parentMethod · 0.45
sizeMethod · 0.45
childrenMethod · 0.45

Tested by

no test coverage detected