| 12954 | } |
| 12955 | |
| 12956 | QCustomPlot::~QCustomPlot() |
| 12957 | { |
| 12958 | clearPlottables(); |
| 12959 | clearItems(); |
| 12960 | |
| 12961 | if (mPlotLayout) |
| 12962 | { |
| 12963 | delete mPlotLayout; |
| 12964 | mPlotLayout = 0; |
| 12965 | } |
| 12966 | |
| 12967 | mCurrentLayer = 0; |
| 12968 | qDeleteAll(mLayers); // don't use removeLayer, because it would prevent the last layer to be removed |
| 12969 | mLayers.clear(); |
| 12970 | } |
| 12971 | |
| 12972 | /*! |
| 12973 | Sets which elements are forcibly drawn antialiased as an \a or combination of QCP::AntialiasedElement. |