| 178 | } |
| 179 | |
| 180 | void ThemeCustomizationWidget::refresh() |
| 181 | { |
| 182 | applySettings(); |
| 183 | disconnect(ui->iconsComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &ThemeCustomizationWidget::applyIconTheme); |
| 184 | disconnect(ui->widgetStyleComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, |
| 185 | &ThemeCustomizationWidget::applyWidgetTheme); |
| 186 | disconnect(ui->backgroundCatComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, |
| 187 | &ThemeCustomizationWidget::applyCatTheme); |
| 188 | APPLICATION->themeManager()->refresh(); |
| 189 | ui->iconsComboBox->clear(); |
| 190 | ui->widgetStyleComboBox->clear(); |
| 191 | ui->backgroundCatComboBox->clear(); |
| 192 | loadSettings(); |
| 193 | connect(ui->iconsComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &ThemeCustomizationWidget::applyIconTheme); |
| 194 | connect(ui->widgetStyleComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, |
| 195 | &ThemeCustomizationWidget::applyWidgetTheme); |
| 196 | connect(ui->backgroundCatComboBox, QOverload<int>::of(&QComboBox::currentIndexChanged), this, &ThemeCustomizationWidget::applyCatTheme); |
| 197 | }; |
nothing calls this directly
no test coverage detected