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

Method paintEvent

plugins/widgetinspector/overlaywidget.cpp:186–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186void OverlayWidget::paintEvent(QPaintEvent *)
187{
188 QPainter p(this);
189 p.setPen(m_outerRectColor);
190 p.drawRect(m_outerRect);
191
192 QBrush brush(Qt::BDiagPattern);
193 brush.setColor(Qt::blue);
194
195 if (!m_drawLayoutOutlineOnly)
196 p.fillPath(m_layoutPath, brush);
197
198 p.setPen(Qt::blue);
199 p.drawPath(m_layoutPath);
200}

Callers

nothing calls this directly

Calls 1

drawPathMethod · 0.45

Tested by

no test coverage detected