Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/rootmodel.cpp
Show First 20 Lines • Show All 99 Lines • ▼ Show 20 Line(s) | 98 | if (model == m_recentAppsModel | |||
---|---|---|---|---|---|
100 | || model == m_recentContactsModel) { | 100 | || model == m_recentContactsModel) { | ||
101 | if (role == Kicker::HasActionListRole) { | 101 | if (role == Kicker::HasActionListRole) { | ||
102 | return true; | 102 | return true; | ||
103 | } else if (role == Kicker::ActionListRole) { | 103 | } else if (role == Kicker::ActionListRole) { | ||
104 | QVariantList actionList; | 104 | QVariantList actionList; | ||
105 | actionList << model->actions(); | 105 | actionList << model->actions(); | ||
106 | actionList << Kicker::createSeparatorActionItem(); | 106 | actionList << Kicker::createSeparatorActionItem(); | ||
107 | actionList << Kicker::createActionItem(i18n("Hide %1", | 107 | actionList << Kicker::createActionItem(i18n("Hide %1", | ||
108 | group->name()), QStringLiteral("hideCategory")); | 108 | group->name()), QStringLiteral("view-hidden"), QStringLiteral("hideCategory")); | ||
109 | return actionList; | 109 | return actionList; | ||
110 | } | 110 | } | ||
111 | } | 111 | } | ||
112 | } | 112 | } | ||
113 | } | 113 | } | ||
114 | 114 | | |||
115 | return AppsModel::data(index, role); | 115 | return AppsModel::data(index, role); | ||
116 | } | 116 | } | ||
▲ Show 20 Lines • Show All 337 Lines • Show Last 20 Lines |