Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/PackageKitBackend/PackageKitResource.cpp
Show First 20 Lines • Show All 276 Lines • ▼ Show 20 Line(s) | |||||
277 | 277 | | |||
278 | #else | 278 | #else | ||
279 | const auto& updateText = _updateText; | 279 | const auto& updateText = _updateText; | ||
280 | #endif | 280 | #endif | ||
281 | 281 | | |||
282 | const auto name = PackageKit::Daemon::packageName(packageID); | 282 | const auto name = PackageKit::Daemon::packageName(packageID); | ||
283 | 283 | | |||
284 | QString info; | 284 | QString info; | ||
285 | addIfNotEmpty(i18n("Current Version:"), joinPackages(updates, {}, name), info); | | |||
286 | addIfNotEmpty(i18n("Obsoletes:"), joinPackages(obsoletes, {}, name), info); | 285 | addIfNotEmpty(i18n("Obsoletes:"), joinPackages(obsoletes, {}, name), info); | ||
287 | addIfNotEmpty(i18n("New Version:"), updateText, info); | 286 | addIfNotEmpty(i18n("Release Notes:"), updateText, info); | ||
288 | addIfNotEmpty(i18n("Update State:"), PackageKitMessages::updateStateMessage(state), info); | 287 | addIfNotEmpty(i18n("Update State:"), PackageKitMessages::updateStateMessage(state), info); | ||
289 | addIfNotEmpty(i18n("Restart:"), PackageKitMessages::restartMessage(restart), info); | 288 | addIfNotEmpty(i18n("Restart:"), PackageKitMessages::restartMessage(restart), info); | ||
290 | 289 | | |||
291 | if (!vendorUrls.isEmpty()) | 290 | if (!vendorUrls.isEmpty()) | ||
292 | addIfNotEmpty(i18n("Vendor:"), urlToLinks(vendorUrls).join(QStringLiteral(", ")), info); | 291 | addIfNotEmpty(i18n("Vendor:"), urlToLinks(vendorUrls).join(QStringLiteral(", ")), info); | ||
293 | 292 | | |||
294 | emit changelogFetched(changelog() + info); | 293 | emit changelogFetched(changelog() + info); | ||
295 | } | 294 | } | ||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |