MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / fillRect

Method fillRect

app/src/UI/Widgets/PainterContext.cpp:1245–1257  ·  view source on GitHub ↗

* @brief Fills the rectangle (x, y, w, h) with the active fill style. */

Source from the content-addressed store, hash-verified

1243 * @brief Fills the rectangle (x, y, w, h) with the active fill style.
1244 */
1245void Widgets::PainterContext::fillRect(qreal x, qreal y, qreal w, qreal h)
1246{
1247 if (!active())
1248 return;
1249
1250 if (shadowActive()) {
1251 QBrush brush = m_state.fillBrush;
1252 QRectF r(x, y, w, h);
1253 renderWithShadow([r, brush](QPainter* p) { p->fillRect(r, brush); }, r);
1254 }
1255
1256 m_painter->fillRect(QRectF(x, y, w, h), m_state.fillBrush);
1257}
1258
1259/**
1260 * @brief Strokes the rectangle (x, y, w, h) with the active stroke style.

Callers 15

paintEventMethod · 0.80
drawLineFunction · 0.80
beforeDrawFunction · 0.80
paintFunction · 0.80
draw_barFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
barFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80
paintFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected