~ubuntu-branches/ubuntu/vivid/lightdm-kde/vivid

« back to all changes in this revision

Viewing changes to kcm/themesmodel.cpp

  • Committer: Package Import Robot
  • Author(s): Michal Zajac
  • Date: 2012-07-22 19:44:44 UTC
  • mfrom: (1.1.3)
  • Revision ID: package-import@ubuntu.com-20120722194444-aaueaylu3ddnqcth
Tags: 0.2.1-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
93
93
    //get a list of possible theme directories, loop through each of these finding themes.
94
94
    //FIXME I think this can be simplified to return all possible themes directly
95
95
 
96
 
    foreach(const QString themeDirPath, themeDirPaths)
 
96
    foreach(const QString &themeDirPath, themeDirPaths)
97
97
    {
98
98
        QDir themeDir(themeDirPath);
99
 
        foreach(const QString dirPath, themeDir.entryList(QDir::NoDotAndDotDot | QDir::Dirs)) {
 
99
        foreach(const QString &dirPath, themeDir.entryList(QDir::NoDotAndDotDot | QDir::Dirs)) {
100
100
            qDebug() << themeDir.filePath(dirPath + "/theme.rc");
101
101
            if (QFile::exists(themeDir.filePath(dirPath + "/theme.rc"))) {
102
102
                loadTheme(QDir(themeDir.filePath(dirPath)));