| 20 | } |
| 21 | |
| 22 | void VisualSettings::resetColorTheme(ColorTheme *colorTheme) { |
| 23 | editColorTheme = colorTheme; |
| 24 | |
| 25 | ui->themeName->setText(editColorTheme->getName()); |
| 26 | ui->spinBoxMxH->setValue(editColorTheme->getMxColor().h); |
| 27 | ui->doubleSpinBoxMxS->setValue(editColorTheme->getMxColor().s); |
| 28 | ui->doubleSpinBoxMxL->setValue(editColorTheme->getMxColor().l); |
| 29 | ui->spinBoxMiH->setValue(editColorTheme->getMiColor().h); |
| 30 | ui->doubleSpinBoxMiS->setValue(editColorTheme->getMiColor().s); |
| 31 | ui->doubleSpinBoxMiL->setValue(editColorTheme->getMiColor().l); |
| 32 | ui->spinBoxNfH->setValue(editColorTheme->getNfColor().h); |
| 33 | ui->doubleSpinBoxNfS->setValue(editColorTheme->getNfColor().s); |
| 34 | ui->doubleSpinBoxNfL->setValue(editColorTheme->getNfColor().l); |
| 35 | ui->spinBoxCeH->setValue(editColorTheme->getCeColor().h); |
| 36 | ui->doubleSpinBoxCeS->setValue(editColorTheme->getCeColor().s); |
| 37 | ui->doubleSpinBoxCeL->setValue(editColorTheme->getCeColor().l); |
| 38 | |
| 39 | ui->grandCompH->setValue(editColorTheme->getGrandComp().h); |
| 40 | ui->grandCompS->setValue(editColorTheme->getGrandComp().s); |
| 41 | ui->grandCompL->setValue(editColorTheme->getGrandComp().l); |
| 42 | ui->grandRateH->setValue(editColorTheme->getGrandRate().h); |
| 43 | ui->grandRateS->setValue(editColorTheme->getGrandRate().s); |
| 44 | ui->grandRateL->setValue(editColorTheme->getGrandRate().l); |
| 45 | } |
| 46 | |
| 47 | void VisualSettings::themeNameChanged(const QString &x) { editColorTheme->setName(x); } |
| 48 |
no test coverage detected