Changeset View
Changeset View
Standalone View
Standalone View
autotests/kiconloader_resourcethemetest.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | 33 | private Q_SLOTS: | |||
---|---|---|---|---|---|
43 | 43 | | |||
44 | void testThemeFound() | 44 | void testThemeFound() | ||
45 | { | 45 | { | ||
46 | // try to load icon that can only be found in resource theme and check we found it in the resource | 46 | // try to load icon that can only be found in resource theme and check we found it in the resource | ||
47 | QString path; | 47 | QString path; | ||
48 | KIconLoader::global()->loadIcon(QStringLiteral("someiconintheme"), KIconLoader::Desktop, 22, | 48 | KIconLoader::global()->loadIcon(QStringLiteral("someiconintheme"), KIconLoader::Desktop, 22, | ||
49 | KIconLoader::DefaultState, QStringList(), | 49 | KIconLoader::DefaultState, QStringList(), | ||
50 | &path); | 50 | &path); | ||
51 | QCOMPARE(path, QString(":/icons/themeinresource/22x22/appsNoContext/someiconintheme.png")); | 51 | QCOMPARE(path, QStringLiteral(":/icons/themeinresource/22x22/appsNoContext/someiconintheme.png")); | ||
52 | 52 | | |||
53 | } | 53 | } | ||
54 | }; | 54 | }; | ||
55 | 55 | | |||
56 | QTEST_MAIN(KIconLoader_ResourceThemeTest) | 56 | QTEST_MAIN(KIconLoader_ResourceThemeTest) | ||
57 | 57 | | |||
58 | #include "kiconloader_resourcethemetest.moc" | 58 | #include "kiconloader_resourcethemetest.moc" |