From de9d8a08fe5e85cdb599022261e07e27b7646f6c Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 9 Jul 2013 12:18:21 +0200 Subject: Show actors, genres and metadata when selecting a series We're getting there, slowly, but steadily :) --- archivemodel.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'archivemodel.h') diff --git a/archivemodel.h b/archivemodel.h index 7e77642..991d4da 100644 --- a/archivemodel.h +++ b/archivemodel.h @@ -13,6 +13,7 @@ #include #include #include +#include #include "smtreemodel.h" @@ -37,6 +38,9 @@ class ArchiveModel : public SmTreeModel { QStringList indexToPath(const QModelIndex &idx) const; QModelIndexList pathToIndex(const QStringList &path) const; QSet seriesPartIds(const QModelIndex &idx) const; + QStringList actors(const QSet &partIds) const; + QStringList genres(const QSet &genreIds) const; + QString metadata(int partId) const; signals: void needRefresh(); @@ -121,4 +125,11 @@ class ArchiveCollector : public QThread { bool mCancelled; }; +class SimpleModel : public QStringListModel { + Q_OBJECT + public: + explicit SimpleModel(QObject *parent = 0) : QStringListModel(parent) {} + virtual QVariant data(const QModelIndex &index, int role) const; +}; + #endif // ARCHIVEMODEL_H -- cgit v1.2.3-70-g09d2