mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
use foreach() for iteration in QIconLoader::findIconHelper()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
8e1bd44ce1
commit
070a0557e7
1 changed files with 1 additions and 3 deletions
|
@ -199,11 +199,9 @@ QThemeIconEntries QIconLoader::findIconHelper(const QString &themeName,
|
|||
}
|
||||
|
||||
QString contentDir = theme.contentDir() + QLatin1Char('/');
|
||||
QList<QIconDirInfo> subDirs = theme.keyList();
|
||||
|
||||
// Add all relevant files
|
||||
for (int i = 0; i < subDirs.size() ; ++i) {
|
||||
const QIconDirInfo &dirInfo = subDirs.at(i);
|
||||
foreach (const QIconDirInfo &dirInfo, theme.keyList()) {
|
||||
const QString subDir = contentDir + dirInfo.path + QLatin1Char('/');
|
||||
const QString pngPath = subDir + iconName + QLatin1String(".png");
|
||||
if (QFile::exists(pngPath)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue