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) if (role != 0)
return QVariant(); return QVariant();
qDebug() << "fetching item" << index.row();
return QVariant::fromValue(DataManager::instance().getEntry(m_feed, 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); return DataManager::instance().entryCount(m_feed);
} }
Feed *EntriesModel::feed() const Feed* EntriesModel::feed() const
{ {
return m_feed; return m_feed;
} }

View File

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

View File

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