mood: Add page displaying all the mood

This commit is contained in:
Carl Schwan committed 2026-02-19 22:15:39 +01:00
1 parent 145232f3ba
commit 3ecfe220bb
5 files changed
+71 -11

No files matched your search

+3 -1
View File
@@ -100,6 +100,7 @@ QVariant MoodPlaylistsModel::data(const QModelIndex &index, int role) const {
return QString();
case ItemCount: return QString::fromStdString(arg.item_count);
case Author: return arg.author ? QString::fromStdString(*arg.author) : QString();
case Artists: return QString();
}
}
return {};
@@ -113,7 +114,8 @@ QHash<int, QByteArray> MoodPlaylistsModel::roleNames() const {
{VideoId, "videoId"}, // mapped to browseId for playlists
{ThumbnailUrl, "thumbnailUrl"},
{ItemCount, "itemCount"},
{Author, "author"}
{Author, "author"},
{Artists, "artists"},
};
}