! \internal This method is used by \ref QCPAxisRect::removeAxis to report removed axes to the QCustomPlot so it may clear its QCustomPlot::xAxis, yAxis, xAxis2 and yAxis2 members accordingly. */
| 15255 | so it may clear its QCustomPlot::xAxis, yAxis, xAxis2 and yAxis2 members accordingly. |
| 15256 | */ |
| 15257 | void QCustomPlot::axisRemoved(QCPAxis *axis) |
| 15258 | { |
| 15259 | if (xAxis == axis) |
| 15260 | xAxis = 0; |
| 15261 | if (xAxis2 == axis) |
| 15262 | xAxis2 = 0; |
| 15263 | if (yAxis == axis) |
| 15264 | yAxis = 0; |
| 15265 | if (yAxis2 == axis) |
| 15266 | yAxis2 = 0; |
| 15267 | |
| 15268 | // Note: No need to take care of range drag axes and range zoom axes, because they are stored in smart pointers |
| 15269 | } |
| 15270 | |
| 15271 | /*! \internal |
| 15272 |