From 83526b0a12e8755dbcc13d9b91e0f1830b7242e3 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Mon, 5 Apr 2021 22:16:13 +0200 Subject: [PATCH] Minor changes --- src/entriesmodel.cpp | 3 ++- src/entriesmodel.h | 2 +- src/qml/QueueDelegate.qml | 5 +++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/entriesmodel.cpp b/src/entriesmodel.cpp index 82522dbb..18818c3b 100644 --- a/src/entriesmodel.cpp +++ b/src/entriesmodel.cpp @@ -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; } diff --git a/src/entriesmodel.h b/src/entriesmodel.h index 9f110800..5fb96c25 100644 --- a/src/entriesmodel.h +++ b/src/entriesmodel.h @@ -26,7 +26,7 @@ public: QHash roleNames() const override; int rowCount(const QModelIndex &parent) const override; - Feed *feed() const; + Feed* feed() const; private: Feed *m_feed; diff --git a/src/qml/QueueDelegate.qml b/src/qml/QueueDelegate.qml index 9372e75c..a37d635a 100644 --- a/src/qml/QueueDelegate.qml +++ b/src/qml/QueueDelegate.qml @@ -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