From 5df34cd08ee62a55dfd1b24bb7c62c244b2a543d Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 7 Aug 2010 11:03:33 +0200 Subject: Added tooltip to FilesTreeView Added tooltip to FilesTreeView when showing archived or local movies. The tooltip shows all files associated with the SeriesPart. --- filestreemodel.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'filestreemodel.h') diff --git a/filestreemodel.h b/filestreemodel.h index bea1d5c..405878b 100644 --- a/filestreemodel.h +++ b/filestreemodel.h @@ -16,6 +16,7 @@ #include "smtreemodel.h" class QSqlQuery; +class SeriesTreeModel; class FilesTreeModel : public SmTreeModel { Q_OBJECT @@ -37,7 +38,7 @@ class FilesTreeModel : public SmTreeModel { QVariant data(const QModelIndex &index, int role) const; bool setData(const QModelIndex &index, const QVariant &value, int role); Qt::ItemFlags flags(const QModelIndex &index) const; - QHash filesBySeriesPartId(int seriesPartId); + QHash filesBySeriesPartId(int seriesPartId) const; QList > streamInfo(const QModelIndex &idx); QMap pictureInfo(const QModelIndex &idx); QMap pictureMetaInfo(const QModelIndex &idx); @@ -63,6 +64,7 @@ class FilesTreeModel : public SmTreeModel { QHash mFileTypes; QHash mCoverTypes; QHash mModeNames; + SeriesTreeModel *mSeriesModel; int mMode; }; -- cgit v1.2.3-70-g09d2