Changeset View
Changeset View
Standalone View
Standalone View
applets/kicker/plugin/actionlist.cpp
Show First 20 Lines • Show All 377 Lines • ▼ Show 20 Line(s) | 377 | if (!appstreamPool.exists()) { | |||
---|---|---|---|---|---|
378 | appstreamPool->load(); | 378 | appstreamPool->load(); | ||
379 | } | 379 | } | ||
380 | 380 | | |||
381 | const auto components = appstreamPool->componentsById(service->desktopEntryName()+QLatin1String(".desktop")); | 381 | const auto components = appstreamPool->componentsById(service->desktopEntryName()+QLatin1String(".desktop")); | ||
382 | for(const auto &component: components) { | 382 | for(const auto &component: components) { | ||
383 | const QString componentId = component.id(); | 383 | const QString componentId = component.id(); | ||
384 | 384 | | |||
385 | QVariantMap appstreamAction = Kicker::createActionItem(i18nc("@action opens a software center with the application", "Uninstall or Manage Add-Ons..."), "manageApplication", QVariant(QLatin1String("appstream://") + componentId)); | 385 | QVariantMap appstreamAction = Kicker::createActionItem(i18nc("@action opens a software center with the application", "Uninstall or Manage Add-Ons..."), "manageApplication", QVariant(QLatin1String("appstream://") + componentId)); | ||
386 | appstreamAction[QStringLiteral("icon")] = QStringLiteral("plasmadiscover"); | 386 | appstreamAction[QStringLiteral("icon")] = appStreamHandler->icon(); | ||
387 | ret << appstreamAction; | 387 | ret << appstreamAction; | ||
388 | } | 388 | } | ||
389 | #else | 389 | #else | ||
390 | Q_UNUSED(service) | 390 | Q_UNUSED(service) | ||
391 | #endif | 391 | #endif | ||
392 | 392 | | |||
393 | return ret; | 393 | return ret; | ||
394 | } | 394 | } | ||
Show All 20 Lines |