* @brief Fills the current path with the active fill style. */
| 1171 | * @brief Fills the current path with the active fill style. |
| 1172 | */ |
| 1173 | void Widgets::PainterContext::fill() |
| 1174 | { |
| 1175 | if (!active()) |
| 1176 | return; |
| 1177 | |
| 1178 | if (shadowActive()) { |
| 1179 | QPainterPath path = m_path; |
| 1180 | QBrush brush = m_state.fillBrush; |
| 1181 | renderWithShadow([path, brush](QPainter* p) { p->fillPath(path, brush); }, path.boundingRect()); |
| 1182 | } |
| 1183 | |
| 1184 | m_painter->fillPath(m_path, m_state.fillBrush); |
| 1185 | } |
| 1186 | |
| 1187 | /** |
| 1188 | * @brief Strokes the current path with the active stroke style. |
no outgoing calls
no test coverage detected