mirror of
https://github.com/KDE/kasts.git
synced 2025-01-20 20:39:40 +01:00
Switch to ImageWithFallback to fix android not showing image as icon
Also fix one minor whitespace issue.
This commit is contained in:
parent
17f235f535
commit
041b1edd11
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user