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:
parent
e2edaa2c1a
commit
e54d75fb80
@ -52,6 +52,10 @@ void ThemeTest::initTestCase()
|
|||||||
KConfigGroup plasmaConfig(KSharedConfig::openConfig("plasmarc"), "Theme");
|
KConfigGroup plasmaConfig(KSharedConfig::openConfig("plasmarc"), "Theme");
|
||||||
plasmaConfig.writeEntry("name", "default");
|
plasmaConfig.writeEntry("name", "default");
|
||||||
m_svg = new Plasma::Svg();
|
m_svg = new Plasma::Svg();
|
||||||
|
|
||||||
|
KSharedConfig::openConfig()->reparseConfiguration();
|
||||||
|
KIconTheme::reconfigure();
|
||||||
|
KIconLoader::global()->reconfigure(QString());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ThemeTest::cleanupTestCase()
|
void ThemeTest::cleanupTestCase()
|
||||||
|
Loading…
Reference in New Issue
Block a user