reload icon theme properly

- reparse the global config (needed because the curren theme cache is
  refreshed from there)
- reconfigure the global curren-theme cache
- reconfigure the global loader

reviewed on IRC
This commit is contained in:
Harald Sitter 2016-04-27 13:25:59 +02:00
parent e2edaa2c1a
commit e54d75fb80

View File

@ -52,6 +52,10 @@ void ThemeTest::initTestCase()
KConfigGroup plasmaConfig(KSharedConfig::openConfig("plasmarc"), "Theme");
plasmaConfig.writeEntry("name", "default");
m_svg = new Plasma::Svg();
KSharedConfig::openConfig()->reparseConfiguration();
KIconTheme::reconfigure();
KIconLoader::global()->reconfigure(QString());
}
void ThemeTest::cleanupTestCase()