! \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. */
| 16005 | so it may clear its QCustomPlot::xAxis, yAxis, xAxis2 and yAxis2 members accordingly. |
| 16006 | */ |
| 16007 | void QCustomPlot::axisRemoved(QCPAxis *axis) |
| 16008 | { |
| 16009 | if (xAxis == axis) |
| 16010 | xAxis = nullptr; |
| 16011 | if (xAxis2 == axis) |
| 16012 | xAxis2 = nullptr; |
| 16013 | if (yAxis == axis) |
| 16014 | yAxis = nullptr; |
| 16015 | if (yAxis2 == axis) |
| 16016 | yAxis2 = nullptr; |
| 16017 | |
| 16018 | // Note: No need to take care of range drag axes and range zoom axes, because they are stored in smart pointers |
| 16019 | } |
| 16020 | |
| 16021 | /*! \internal |
| 16022 |