Changeset View
Changeset View
Standalone View
Standalone View
autotests/kiconengine_unittest.cpp
Show All 31 Lines | 31 | { | |||
---|---|---|---|---|---|
32 | Q_OBJECT | 32 | Q_OBJECT | ||
33 | 33 | | |||
34 | private Q_SLOTS: | 34 | private Q_SLOTS: | ||
35 | void initTestCase() | 35 | void initTestCase() | ||
36 | { | 36 | { | ||
37 | QStandardPaths::setTestModeEnabled(true); | 37 | QStandardPaths::setTestModeEnabled(true); | ||
38 | 38 | | |||
39 | // Remove icon cache | 39 | // Remove icon cache | ||
40 | const QString cacheFile = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + "/icon-cache.kcache"; | 40 | const QString cacheFile = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QStringLiteral("/icon-cache.kcache"); | ||
41 | QFile::remove(cacheFile); | 41 | QFile::remove(cacheFile); | ||
42 | 42 | | |||
43 | KConfigGroup cg(KSharedConfig::openConfig(), "Icons"); | 43 | KConfigGroup cg(KSharedConfig::openConfig(), "Icons"); | ||
44 | cg.writeEntry("Theme", "oxygen"); | 44 | cg.writeEntry("Theme", "oxygen"); | ||
45 | cg.sync(); | 45 | cg.sync(); | ||
46 | 46 | | |||
47 | QDir testDataDir(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)); | 47 | QDir testDataDir(QStandardPaths::writableLocation(QStandardPaths::GenericDataLocation)); | ||
48 | testIconsDir = QDir(testDataDir.absoluteFilePath(QStringLiteral("icons"))); | 48 | testIconsDir = QDir(testDataDir.absoluteFilePath(QStringLiteral("icons"))); | ||
▲ Show 20 Lines • Show All 97 Lines • Show Last 20 Lines |