Changeset View
Changeset View
Standalone View
Standalone View
src/cursorthemesmodel.cpp
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | 76 | { | |||
---|---|---|---|---|---|
79 | QList<QDir> paths = installedThemesPaths(); | 79 | QList<QDir> paths = installedThemesPaths(); | ||
80 | Q_FOREACH(const QDir& dir, paths) { | 80 | Q_FOREACH(const QDir& dir, paths) { | ||
81 | QStandardItem* themeit = new QStandardItem(dir.dirName()); | 81 | QStandardItem* themeit = new QStandardItem(dir.dirName()); | ||
82 | themeit->setData(dir.path(), PathRole); | 82 | themeit->setData(dir.path(), PathRole); | ||
83 | themeit->setData(dir.dirName(), DirNameRole); | 83 | themeit->setData(dir.dirName(), DirNameRole); | ||
84 | fillItem(dir, themeit); | 84 | fillItem(dir, themeit); | ||
85 | appendRow(themeit); | 85 | appendRow(themeit); | ||
86 | } | 86 | } | ||
87 | | ||||
88 | sort(0); | | |||
89 | } | 87 | } |