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

Method drawTransparencyPattern

core/util.cpp:228–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

226}
227
228void Util::drawTransparencyPattern(QPainter *painter, const QRect &rect, int squareSize)
229{
230 QPixmap bgPattern(2 * squareSize, 2 * squareSize);
231 bgPattern.fill(Qt::lightGray);
232 QPainter bgPainter(&bgPattern);
233 bgPainter.fillRect(squareSize, 0, squareSize, squareSize, Qt::gray);
234 bgPainter.fillRect(0, squareSize, squareSize, squareSize, Qt::gray);
235
236 QBrush bgBrush;
237 bgBrush.setTexture(bgPattern);
238 painter->fillRect(rect, bgBrush);
239}
240
241int Util::signalIndexToMethodIndex(const QMetaObject *metaObject, int signalIndex)
242{

Callers

nothing calls this directly

Calls 2

fillMethod · 0.80
fillRectMethod · 0.45

Tested by

no test coverage detected