Changeset View
Changeset View
Standalone View
Standalone View
libdiscover/backends/SnapBackend/SnapResource.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
49 | } | 49 | } | ||
50 | 50 | | |||
51 | int SnapResource::size() | 51 | int SnapResource::size() | ||
52 | { | 52 | { | ||
53 | // return isInstalled() ? m_snap->installedSize() : m_snap->downloadSize(); | 53 | // return isInstalled() ? m_snap->installedSize() : m_snap->downloadSize(); | ||
54 | return m_snap->downloadSize(); | 54 | return m_snap->downloadSize(); | ||
55 | } | 55 | } | ||
56 | 56 | | |||
57 | QUrl SnapResource::homepage() | | |||
58 | { | | |||
59 | return {}; | | |||
60 | } | | |||
61 | | ||||
62 | QVariant SnapResource::icon() const | 57 | QVariant SnapResource::icon() const | ||
63 | { | 58 | { | ||
64 | if (m_icon.isNull()) { | 59 | if (m_icon.isNull()) { | ||
65 | m_icon = [this]() -> QVariant { | 60 | m_icon = [this]() -> QVariant { | ||
66 | const auto iconPath = m_snap->icon(); | 61 | const auto iconPath = m_snap->icon(); | ||
67 | if (iconPath.isEmpty()) | 62 | if (iconPath.isEmpty()) | ||
68 | return QStringLiteral("package-x-generic"); | 63 | return QStringLiteral("package-x-generic"); | ||
69 | 64 | | |||
▲ Show 20 Lines • Show All 125 Lines • Show Last 20 Lines |