| 51 | void VisualMainSettings::themeChanged(const int x) { editSettings->setCurrentColorThemeIndex(x); } |
| 52 | |
| 53 | void VisualMainSettings::whenThemeEdit() { |
| 54 | int index = ui->themeComboBox->currentIndex(); |
| 55 | auto *dialog = new ThemeEditDialog(this); |
| 56 | |
| 57 | ColorTheme *temp = new ColorTheme; |
| 58 | temp->copyFrom(editSettings->getColorTheme(index)); |
| 59 | |
| 60 | dialog->resetEditTheme(temp); |
| 61 | |
| 62 | if (dialog->exec() == QDialog::Accepted) { |
| 63 | editSettings->setColorTheme(dialog->getEditTheme(), index); |
| 64 | } |
| 65 | |
| 66 | delete dialog; |
| 67 | |
| 68 | resetEditSettings(editSettings); |
| 69 | ui->themeComboBox->setCurrentIndex(index); |
| 70 | } |
| 71 | |
| 72 | void VisualMainSettings::whenThemeAdd() { |
| 73 | ColorTheme *temp = new ColorTheme(); |
nothing calls this directly
no test coverage detected