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

Function itemSize

plugins/quickinspector/quickscreengrabber.cpp:162–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

160}
161
162static QSizeF itemSize(QQuickItem *item)
163{
164 Q_ASSERT(item);
165 QSizeF size = QSizeF(item->width(), item->height());
166
167 // Fallback to children rect if needed
168 if (size.isNull()) {
169 size = item->childrenRect().size();
170 }
171
172 return size;
173}
174
175static QRectF itemGeometry(QQuickItem *item)
176{

Callers 1

itemGeometryFunction · 0.85

Calls 2

isNullMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected