* @brief Fills the rectangle (x, y, w, h) with the active fill style. */
| 1243 | * @brief Fills the rectangle (x, y, w, h) with the active fill style. |
| 1244 | */ |
| 1245 | void 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. |
no outgoing calls
no test coverage detected