| 471 | } |
| 472 | |
| 473 | void 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 | |
| 489 | void OptionsDialog::clearBackgroundColor() |
| 490 | { |
no test coverage detected