Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/appentry.cpp
Show First 20 Lines • Show All 173 Lines • ▼ Show 20 Line(s) | 137 | { | |||
---|---|---|---|---|---|
174 | 174 | | |||
175 | if (appletInterface) { | 175 | if (appletInterface) { | ||
176 | QQmlPropertyMap *appletConfig = qobject_cast<QQmlPropertyMap *>(appletInterface->property("configuration").value<QObject *>()); | 176 | QQmlPropertyMap *appletConfig = qobject_cast<QQmlPropertyMap *>(appletInterface->property("configuration").value<QObject *>()); | ||
177 | 177 | | |||
178 | if (appletConfig && appletConfig->contains(QLatin1String("hiddenApplications")) && qobject_cast<AppsModel *>(m_owner)) { | 178 | if (appletConfig && appletConfig->contains(QLatin1String("hiddenApplications")) && qobject_cast<AppsModel *>(m_owner)) { | ||
179 | const QStringList &hiddenApps = appletConfig->value(QLatin1String("hiddenApplications")).toStringList(); | 179 | const QStringList &hiddenApps = appletConfig->value(QLatin1String("hiddenApplications")).toStringList(); | ||
180 | 180 | | |||
181 | if (!hiddenApps.contains(m_service->menuId())) { | 181 | if (!hiddenApps.contains(m_service->menuId())) { | ||
182 | QVariantMap hideAction = Kicker::createActionItem(i18n("Hide Application"), QStringLiteral("hideApplication")); | 182 | QVariantMap hideAction = Kicker::createActionItem(i18n("Hide Application"), QStringLiteral("hint"), QStringLiteral("hideApplication")); | ||
183 | hideAction[QStringLiteral("icon")] = QStringLiteral("hint"); | | |||
184 | actionList << hideAction; | 183 | actionList << hideAction; | ||
185 | } | 184 | } | ||
186 | } | 185 | } | ||
187 | } | 186 | } | ||
188 | 187 | | |||
189 | return actionList; | 188 | return actionList; | ||
190 | } | 189 | } | ||
191 | 190 | | |||
▲ Show 20 Lines • Show All 117 Lines • Show Last 20 Lines |