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()) {
|
if (m_data.isEmpty()) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return m_data[QStringLiteral("feeds")].toArray().size();
|
return m_data[QStringLiteral("feeds")].toArray().size();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void PodcastSearchModel::search(const QString &text)
|
void PodcastSearchModel::search(const QString &text)
|
||||||
|
@ -46,11 +46,12 @@ Kirigami.ScrollablePage {
|
|||||||
id: listItem
|
id: listItem
|
||||||
alwaysVisibleActions: true
|
alwaysVisibleActions: true
|
||||||
contentItem: RowLayout {
|
contentItem: RowLayout {
|
||||||
Kirigami.Icon {
|
ImageWithFallback {
|
||||||
source: model.image
|
imageSource: model.image
|
||||||
Layout.fillHeight: true
|
Layout.fillHeight: true
|
||||||
Layout.maximumHeight: Kirigami.Units.iconSizes.huge
|
Layout.maximumHeight: Kirigami.Units.iconSizes.huge
|
||||||
Layout.preferredWidth: height
|
Layout.preferredWidth: height
|
||||||
|
fractionalRadius: 1.0 / 8.0
|
||||||
}
|
}
|
||||||
Controls.Label {
|
Controls.Label {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Loading…
Reference in New Issue
Block a user