subdiff created this revision.
subdiff added a project: Plasma.

REVISION SUMMARY
  With RootModel it is possible to represent pretty much any combination of 
other Kicker models. What's not yet possible is to show for example exclusively 
"All Applications" together with "Recent Applications", but without the app 
categories (Developement, Education, etc.).
  
  This small patch makes it possible to hide app categories by setting the 
property showAppCategories (defaults to true), which is also exported to QML. 
The main downside is, that we still query all application entries, even if we 
don't want to show them. But only doing that and afterwards removing them makes 
the code change trivial. Otherwise we would need to introduce a new class, 
which doesn't inherit from AppsModel, but the other way around.

TEST PLAN
  Tested all relevant combinations in my WIP fork of SimpleMenu.

REPOSITORY
  R119 Plasma Desktop

REVISION DETAIL
  https://phabricator.kde.org/D4792

AFFECTED FILES
  applets/kicker/plugin/rootmodel.cpp
  applets/kicker/plugin/rootmodel.h

EMAIL PREFERENCES
  https://phabricator.kde.org/settings/panel/emailpreferences/

To: subdiff, #plasma
Cc: plasma-devel, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, 
sebas, apol

Reply via email to