equal
deleted
inserted
replaced
47 //to get notified when themes are added. |
47 //to get notified when themes are added. |
48 QStringList themesPathList = CpThemeUtil::themePathList(); |
48 QStringList themesPathList = CpThemeUtil::themePathList(); |
49 foreach (const QString &path, themesPathList) { |
49 foreach (const QString &path, themesPathList) { |
50 QDir themeDir; |
50 QDir themeDir; |
51 themeDir.setPath( path ) ; |
51 themeDir.setPath( path ) ; |
52 QStringList list = themeDir.entryList(QDir::AllDirs|QDir::NoDotAndDotDot,QDir::Name); |
52 QStringList list = themeDir.entryList(QDir::AllDirs|QDir::NoDotAndDotDot, QDir::Name); |
53 if(list.contains("themes", Qt::CaseSensitive )) { |
53 if(list.contains("themes", Qt::CaseSensitive )) { |
54 mFileWatcher->addPath(themeDir.path() + "/themes/"); |
54 mFileWatcher->addPath(themeDir.path() + "/themes/"); |
55 } |
55 } |
56 } |
56 } |
57 connect(mFileWatcher, SIGNAL(directoryChanged(const QString&)), |
57 connect(mFileWatcher, SIGNAL(directoryChanged(const QString&)), |