! \internal Returns the clipping rectangle of this layerable object. By default, this is the viewport of the parent QCustomPlot. Specific subclasses may reimplement this function to provide different clipping rects. The returned clipping rect is set on the painter before the draw function of the respective object is called. */
| 1652 | object is called. |
| 1653 | */ |
| 1654 | QRect QCPLayerable::clipRect() const |
| 1655 | { |
| 1656 | if (mParentPlot) |
| 1657 | return mParentPlot->viewport(); |
| 1658 | else |
| 1659 | return {}; |
| 1660 | } |
| 1661 | |
| 1662 | /*! \internal |
| 1663 |