Changeset View
Changeset View
Standalone View
Standalone View
components/shellprivate/widgetexplorer/widgetexplorer.cpp
Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Line(s) | 117 | { | |||
---|---|---|---|---|---|
123 | if (showSpecialFilters) { | 123 | if (showSpecialFilters) { | ||
124 | // Filters: Special | 124 | // Filters: Special | ||
125 | filterModel.addFilter(i18n("Running"), | 125 | filterModel.addFilter(i18n("Running"), | ||
126 | KCategorizedItemsViewModels::Filter(QStringLiteral("running"), true), | 126 | KCategorizedItemsViewModels::Filter(QStringLiteral("running"), true), | ||
127 | QIcon::fromTheme(QStringLiteral("dialog-ok"))); | 127 | QIcon::fromTheme(QStringLiteral("dialog-ok"))); | ||
128 | 128 | | |||
129 | filterModel.addFilter(i18n("Uninstallable"), | 129 | filterModel.addFilter(i18n("Uninstallable"), | ||
130 | KCategorizedItemsViewModels::Filter(QStringLiteral("local"), true), | 130 | KCategorizedItemsViewModels::Filter(QStringLiteral("local"), true), | ||
131 | QIcon::fromTheme(QStringLiteral("list-remove"))); | 131 | QIcon::fromTheme(QStringLiteral("edit-delete"))); | ||
132 | 132 | | |||
133 | filterModel.addSeparator(i18n("Categories:")); | 133 | filterModel.addSeparator(i18n("Categories:")); | ||
134 | } | 134 | } | ||
135 | 135 | | |||
136 | typedef QPair<QString, QString> catPair; | 136 | typedef QPair<QString, QString> catPair; | ||
137 | QMap<QString, catPair > categories; | 137 | QMap<QString, catPair > categories; | ||
138 | QSet<QString> existingCategories = itemModel.categories(); | 138 | QSet<QString> existingCategories = itemModel.categories(); | ||
139 | //foreach (const QString &category, Plasma::Applet::listCategories(application)) { | 139 | //foreach (const QString &category, Plasma::Applet::listCategories(application)) { | ||
▲ Show 20 Lines • Show All 371 Lines • Show Last 20 Lines |