- // Add our resource path too
- iconDirNames << ":/icons/";
-
- // Ready do add theme names
- foreach(const QString &dir, iconDirNames) {
- QString path = dir + theme + '/';
- if(QFile::exists(path))
- _themedIconDirNames << path;
- }
- foreach(const QString &dir, iconDirNames) {
- QString path = dir + "hicolor/";
- if(QFile::exists(path))
- _themedIconDirNames << path;
- }
-
- // We ship some plain (non-themed) icons in $data/pics
- foreach(const QString &dir, Quassel::dataDirPaths()) {
- QString path = dir + "pics/";
- if(QFile::exists(path))
- _plainIconDirNames << path;
- }
- // And of course, our resource path
- if(QFile::exists(":/pics"))
- _plainIconDirNames << ":/pics";