Minor changes

This commit is contained in:
Bart De Vries 2021-04-05 22:16:13 +02:00
parent bb7f3393a7
commit 83526b0a12
3 changed files with 6 additions and 4 deletions

View File

@ -32,6 +32,7 @@ QVariant EntriesModel::data(const QModelIndex &index, int role) const
{
if (role != 0)
return QVariant();
qDebug() << "fetching item" << index.row();
return QVariant::fromValue(DataManager::instance().getEntry(m_feed, index.row()));
}
@ -48,7 +49,7 @@ int EntriesModel::rowCount(const QModelIndex &parent) const
return DataManager::instance().entryCount(m_feed);
}
Feed *EntriesModel::feed() const
Feed* EntriesModel::feed() const
{
return m_feed;
}

View File

@ -26,7 +26,7 @@ public:
QHash<int, QByteArray> roleNames() const override;
int rowCount(const QModelIndex &parent) const override;
Feed *feed() const;
Feed* feed() const;
private:
Feed *m_feed;

View File

@ -24,8 +24,9 @@ Kirigami.SwipeListItem {
}
Kirigami.Icon {
source: Fetcher.image(model.entry.image)
height: parent.height
width: height
property int size: Kirigami.Units.iconSizes.medium
Layout.minimumHeight: size
Layout.minimumWidth: size
}
ColumnLayout {
spacing: 0