reload icon theme for iconitemtest as well

This commit is contained in:
Harald Sitter 2016-04-27 13:34:43 +02:00
parent 94943e21e8
commit 0a45d9792d

View File

@ -69,6 +69,11 @@ void IconItemTest::initTestCase()
KConfigGroup plasmaConfig(KSharedConfig::openConfig("plasmarc"), "Theme"); KConfigGroup plasmaConfig(KSharedConfig::openConfig("plasmarc"), "Theme");
plasmaConfig.writeEntry("name", "default"); plasmaConfig.writeEntry("name", "default");
cg.sync(); // sync explicitly so it will be correctly parsed
KSharedConfig::openConfig()->reparseConfiguration();
KIconTheme::reconfigure();
KIconLoader::global()->reconfigure(QString());
m_view = new QQuickView(); m_view = new QQuickView();
m_view->setSource(QUrl::fromLocalFile(QFINDTESTDATA("data/view.qml"))); m_view->setSource(QUrl::fromLocalFile(QFINDTESTDATA("data/view.qml")));
m_view->show(); m_view->show();