MCPcopy Create free account
hub / github.com/IENT/YUView / clearStatTypes

Method clearStatTypes

YUViewLib/src/statistics/StatisticUIHandler.cpp:428–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428void 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
444void StatisticUIHandler::onStyleButtonClicked(unsigned id)
445{

Callers 1

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected