Fix iconitem test - second try

This commit is contained in:
David Rosca 2016-03-06 16:13:54 +01:00
parent fa1ca80281
commit ab302872d3
2 changed files with 4 additions and 3 deletions

View File

@ -3,8 +3,6 @@ Name=Unittest Theme
DisplayDepth=32
Inherits=breeze
DesktopDefault=48
DesktopSizes=16,22,32,48,64,128,256
ToolbarDefault=22
@ -21,7 +19,7 @@ DialogSizes=16,22,32,48,64,128,256
########## Directories
########## ordered by category and alphabetically
Directories=apps/22,apps/32
Directories=apps/22,apps/32,apps/48
[apps/22]
Size=22

View File

@ -61,6 +61,9 @@ void IconItemTest::initTestCase()
QFile::remove(configPath);
QIcon::setThemeSearchPaths({QFINDTESTDATA("data/icons")});
QIcon::setThemeName("test-theme");
KConfigGroup cg(KSharedConfig::openConfig(), "Icons");
cg.writeEntry("Theme", "test-theme");
KConfigGroup plasmaConfig(KSharedConfig::openConfig("plasmarc"), "Theme");