diff options
-rw-r--r-- | collectiondatesview.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/collectiondatesview.cpp b/collectiondatesview.cpp index f93685b..17856c7 100644 --- a/collectiondatesview.cpp +++ b/collectiondatesview.cpp @@ -51,6 +51,9 @@ void CollectionDatesView::populate(){ QString albumText = QString("%1 - %2").arg(q1.value(3).toString()).arg(q1.value(1).toString()); albumItem->setText(albumText); albumItem->setIcon(albumIcon); + albumItem->setData(Album, TypeRole); + albumItem->setData(q1.value(3), ArtistRole); + albumItem->setData(q1.value(1), AlbumRole); ymItem->appendRow(albumItem); songQ.bindValue(":id", q1.value(0)); songQ.exec(); |