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)
|
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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue