controlpanelplugins/themeplugin/src/cpthemelistmodel.cpp
changeset 26 808caa51b78b
parent 22 a5692c68d772
child 28 e0b83131558d
equal deleted inserted replaced
22:a5692c68d772 26:808caa51b78b
    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&)),