* @brief Sets the current path as the clipping region. */
| 1207 | * @brief Sets the current path as the clipping region. |
| 1208 | */ |
| 1209 | void Widgets::PainterContext::clip() |
| 1210 | { |
| 1211 | if (!active()) |
| 1212 | return; |
| 1213 | |
| 1214 | m_painter->setClipPath(m_path, Qt::IntersectClip); |
| 1215 | } |
| 1216 | |
| 1217 | /** |
| 1218 | * @brief Returns true if the point lies inside the current path (non-zero winding). |
no outgoing calls
no test coverage detected