Switch to ImageWithFallback to fix android not showing image as icon

Also fix one minor whitespace issue.
This commit is contained in:
Bart De Vries 2021-07-12 16:24:50 +02:00
parent 17f235f535
commit 041b1edd11
2 changed files with 4 additions and 4 deletions

View File

@ -127,8 +127,7 @@ int PodcastSearchModel::rowCount(const QModelIndex &parent) const
if (m_data.isEmpty()) {
return 0;
}
return m_data[QStringLiteral("feeds")].toArray().size();
return m_data[QStringLiteral("feeds")].toArray().size();
}
void PodcastSearchModel::search(const QString &text)

View File

@ -46,11 +46,12 @@ Kirigami.ScrollablePage {
id: listItem
alwaysVisibleActions: true
contentItem: RowLayout {
Kirigami.Icon {
source: model.image
ImageWithFallback {
imageSource: model.image
Layout.fillHeight: true
Layout.maximumHeight: Kirigami.Units.iconSizes.huge
Layout.preferredWidth: height
fractionalRadius: 1.0 / 8.0
}
Controls.Label {
Layout.fillWidth: true