MCPcopy Create free account
hub / github.com/FreesmTeam/FreesmLauncher / refresh

Method refresh

launcher/ui/widgets/ThemeCustomizationWidget.cpp:180–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

178}
179
180void 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};

Callers

nothing calls this directly

Calls 2

themeManagerMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected