MCPcopy Create free account
hub / github.com/YACReader/yacreader / setFilters

Method setFilters

YACReader/options_dialog.cpp:473–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471}
472
473void OptionsDialog::setFilters(int brightness, int contrast, int gamma)
474{
475 if (brightness != -1)
476 brightnessS->setValue(brightness);
477 else
478 brightnessS->setValue(0);
479 if (contrast != -1)
480 contrastS->setValue(contrast);
481 else
482 contrastS->setValue(100);
483 if (gamma != -1)
484 gammaS->setValue(gamma);
485 else
486 gammaS->setValue(100);
487}
488
489void OptionsDialog::clearBackgroundColor()
490{

Callers 3

openMethod · 0.45
openMethod · 0.45
updateFiltersMethod · 0.45

Calls 1

setValueMethod · 0.80

Tested by

no test coverage detected