| 426 | } |
| 427 | |
| 428 | void StatisticUIHandler::clearStatTypes() |
| 429 | { |
| 430 | if (!this->statisticsData) |
| 431 | { |
| 432 | DEBUG_STATUI("StatisticUIHandler::clearStatTypes statisticsData not set"); |
| 433 | return; |
| 434 | } |
| 435 | |
| 436 | // Create a backup of the types list. This backup is used if updateStatisticsHandlerControls is |
| 437 | // called to revert the new controls. This way we can see which statistics were drawn / how. |
| 438 | this->statsTypeListBackup = this->statisticsData->getStatisticsTypes(); |
| 439 | |
| 440 | // Clear the old list. New items can be added now. |
| 441 | this->statisticsData->clear(); |
| 442 | } |
| 443 | |
| 444 | void StatisticUIHandler::onStyleButtonClicked(unsigned id) |
| 445 | { |
no test coverage detected