* @brief Strokes the current path with the active stroke style. */
| 1188 | * @brief Strokes the current path with the active stroke style. |
| 1189 | */ |
| 1190 | void Widgets::PainterContext::stroke() |
| 1191 | { |
| 1192 | if (!active()) |
| 1193 | return; |
| 1194 | |
| 1195 | if (shadowActive()) { |
| 1196 | QPainterPath path = m_path; |
| 1197 | QPen pen = m_state.strokePen; |
| 1198 | renderWithShadow( |
| 1199 | [path, pen](QPainter* p) { p->strokePath(path, pen); }, |
| 1200 | path.boundingRect().adjusted(-pen.widthF(), -pen.widthF(), pen.widthF(), pen.widthF())); |
| 1201 | } |
| 1202 | |
| 1203 | m_painter->strokePath(m_path, m_state.strokePen); |
| 1204 | } |
| 1205 | |
| 1206 | /** |
| 1207 | * @brief Sets the current path as the clipping region. |
no outgoing calls
no test coverage detected