Changeset View
Changeset View
Standalone View
Standalone View
src/kiconloader.cpp
Show First 20 Lines • Show All 1339 Lines • ▼ Show 20 Line(s) | 1338 | if (path.isEmpty() && !canReturnNull) { | |||
---|---|---|---|---|---|
1340 | iconWasUnknown = true; | 1340 | iconWasUnknown = true; | ||
1341 | } | 1341 | } | ||
1342 | 1342 | | |||
1343 | QImage img; | 1343 | QImage img; | ||
1344 | if (!path.isEmpty()) { | 1344 | if (!path.isEmpty()) { | ||
1345 | img = d->createIconImage(path, size, static_cast<KIconLoader::States>(state)); | 1345 | img = d->createIconImage(path, size, static_cast<KIconLoader::States>(state)); | ||
1346 | } | 1346 | } | ||
1347 | 1347 | | |||
1348 | if (group >= 0) { | 1348 | if (group >= 0 && group < KIconLoader::LastGroup) { | ||
1349 | img = d->mpEffect.apply(img, group, state); | 1349 | img = d->mpEffect.apply(img, group, state); | ||
1350 | } | 1350 | } | ||
1351 | 1351 | | |||
1352 | if (favIconOverlay) { | 1352 | if (favIconOverlay) { | ||
1353 | QImage favIcon(name, "PNG"); | 1353 | QImage favIcon(name, "PNG"); | ||
1354 | if (!favIcon.isNull()) { // if favIcon not there yet, don't try to blend it | 1354 | if (!favIcon.isNull()) { // if favIcon not there yet, don't try to blend it | ||
1355 | QPainter p(&img); | 1355 | QPainter p(&img); | ||
1356 | 1356 | | |||
▲ Show 20 Lines • Show All 490 Lines • Show Last 20 Lines |