馃崚applets/kicker: return more roles explicitly

Original commit message(s)

  • applets/kicker: return more roles explicitly

Similar to ef0009ad and 510bd959

Kicker's models sometimes return an empty QVariant if the role is irrelevant to the model. This breaks with required bool properties if the ListView is reused with a different model; the empty QVariant does not become false, but maintains the previous value. Main kicker's submenus reuse the listview, so moving e.g. from an app category submenu to Recents or system actions may cause entries there to be inappropriately marked as subcategories, separators, or (in 6.7) as newly installed.

Instead, explicitly return bool false for the roles where this may be an issue.

CCBUG: 503582

(cherry picked from commit 175b6041)

Co-authored-by: Christoph Wolk cwo.kde@posteo.net

Reason for the change

Test plan

Screenshots or screen recordings

Bugs fixed

Merge request reports

Loading