Changeset View
Changeset View
Standalone View
Standalone View
app/SettingsBase.cpp
Show First 20 Lines • Show All 219 Lines • ▼ Show 20 Line(s) | 201 | { | |||
---|---|---|---|---|---|
220 | KService::List removeList; | 220 | KService::List removeList; | ||
221 | 221 | | |||
222 | // scan for any modules at this level and add them | 222 | // scan for any modules at this level and add them | ||
223 | for (int i = 0; i < modules.size(); ++i) { | 223 | for (int i = 0; i < modules.size(); ++i) { | ||
224 | const KService::Ptr entry = modules.at(i); | 224 | const KService::Ptr entry = modules.at(i); | ||
225 | const QString category = entry->property("X-KDE-System-Settings-Parent-Category").toString(); | 225 | const QString category = entry->property("X-KDE-System-Settings-Parent-Category").toString(); | ||
226 | const QString category2 = entry->property("X-KDE-System-Settings-Parent-Category-V2").toString(); | 226 | const QString category2 = entry->property("X-KDE-System-Settings-Parent-Category-V2").toString(); | ||
227 | if( !parent->category().isEmpty() && (category == parent->category() || category2 == parent->category()) ) { | 227 | if( !parent->category().isEmpty() && (category == parent->category() || category2 == parent->category()) ) { | ||
228 | if (!entry->noDisplay() ) { | ||||
228 | // Add the module info to the menu | 229 | // Add the module info to the menu | ||
229 | MenuItem * infoItem = new MenuItem(false, parent); | 230 | MenuItem * infoItem = new MenuItem(false, parent); | ||
230 | infoItem->setService( entry ); | 231 | infoItem->setService( entry ); | ||
232 | } | ||||
233 | | ||||
231 | removeList.append( modules.at(i) ); | 234 | removeList.append( modules.at(i) ); | ||
232 | } | 235 | } | ||
233 | } | 236 | } | ||
234 | 237 | | |||
235 | for (int i = 0; i < removeList.size(); ++i) { | 238 | for (int i = 0; i < removeList.size(); ++i) { | ||
236 | modules.removeOne( removeList.at(i) ); | 239 | modules.removeOne( removeList.at(i) ); | ||
237 | } | 240 | } | ||
238 | 241 | | |||
▲ Show 20 Lines • Show All 171 Lines • Show Last 20 Lines |