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

Method resetImageConfig

YACReader/options_dialog.cpp:449–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

447}
448
449void OptionsDialog::resetImageConfig()
450{
451 brightnessS->setValue(0);
452 contrastS->setValue(100);
453 gammaS->setValue(100);
454 QSettings settings(YACReader::getSettingsPath() + "/YACReader.ini", QSettings::IniFormat);
455 settings.setValue(BRIGHTNESS, 0);
456 settings.setValue(CONTRAST, 100);
457 settings.setValue(GAMMA, 100);
458 emit changedFilters(brightnessS->getValue(), contrastS->getValue(), gammaS->getValue());
459 // emit(changedImageOptions());
460}
461
462void OptionsDialog::show()
463{

Callers

nothing calls this directly

Calls 2

setValueMethod · 0.80
getValueMethod · 0.80

Tested by

no test coverage detected