mirror of https://github.com/KDE/kasts.git
Minor changes
This commit is contained in:
parent
bb7f3393a7
commit
83526b0a12
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue