| 447 | } |
| 448 | |
| 449 | void 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 | |
| 462 | void OptionsDialog::show() |
| 463 | { |