! Removes all items from the plot and deletes them. Returns the number of items removed. \see removeItem */
| 14595 | \see removeItem |
| 14596 | */ |
| 14597 | int QCustomPlot::clearItems() |
| 14598 | { |
| 14599 | int c = mItems.size(); |
| 14600 | for (int i=c-1; i >= 0; --i) |
| 14601 | removeItem(mItems[i]); |
| 14602 | return c; |
| 14603 | } |
| 14604 | |
| 14605 | /*! |
| 14606 | Returns the number of currently existing items in the plot |
nothing calls this directly
no test coverage detected