| 255 | } |
| 256 | |
| 257 | void deleteUnused() { |
| 258 | for (PlotWidget* plot : plots_by_position_) { |
| 259 | if (plot != nullptr && !used_.contains(plot)) { |
| 260 | plot->deleteLater(); |
| 261 | } |
| 262 | } |
| 263 | } |
| 264 | |
| 265 | private: |
| 266 | PlotWidget* createPlot(const QString& state_id) { |