Make "delete" icon work properly in the "Reading" list

Only the "Favorites" special list was handled.
This commit is contained in:
Luis Ángel San Martín
2021-05-16 09:01:35 +02:00
parent e799513fb4
commit 13a29e2657
7 changed files with 61 additions and 2 deletions

View File

@ -44,6 +44,15 @@ QIcon SpecialListItem::getIcon() const
return QIcon();
}
qulonglong SpecialListItem::getId() const
{
if (itemData.count() > Id) {
return itemData.at(Id).toInt();
}
return 0;
}
ReadingListModel::TypeSpecialList SpecialListItem::getType() const
{
if (itemData.count() > Id) {