diff options
author | Arno <arno@disconnect.de> | 2016-11-06 06:07:07 +0100 |
---|---|---|
committer | Arno <arno@disconnect.de> | 2016-11-06 06:07:07 +0100 |
commit | aea54efd00c1cbd0f66bcda83e9c7a196d3c317b (patch) | |
tree | 26b3e7586420f5ef490faf60a466a51560446a44 /archivemodel.h | |
parent | 6274b353c2f22703371e4751b6cb7f96a38d94e9 (diff) | |
download | SheMov-aea54efd00c1cbd0f66bcda83e9c7a196d3c317b.tar.gz SheMov-aea54efd00c1cbd0f66bcda83e9c7a196d3c317b.tar.bz2 SheMov-aea54efd00c1cbd0f66bcda83e9c7a196d3c317b.zip |
Kinda fix display of metadata
If a seriespart is selected in the tree, display a summary.
When a file is selected, display the actual metadata.
It's much more consistent. Before, the metadata of the first *item in the
selected list was displayed.
Diffstat (limited to 'archivemodel.h')
-rw-r--r-- | archivemodel.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/archivemodel.h b/archivemodel.h index da673c7..ad11fce 100644 --- a/archivemodel.h +++ b/archivemodel.h @@ -106,6 +106,10 @@ class ArchiveFilesModel : public SmTreeModel { void populate(const QSet<int> &seriesPartIds); QStringList filesForSeriespart(int seriesPartId) const; void updateSeriesPartForFile(const QString &md5sum, int newSeriesPart); + quint64 totalDuration() const { return mTotalDuration; } + quint64 totalSize() const { return mTotalSize; } + int movieFilesCount() const { return mTotalMovies; } + int otherFilesCount() const { return mTotalOthers; } static bool hasFile(const QString &md5); static bool setDvdNo(const QString &md5, int dvdno); @@ -117,6 +121,10 @@ class ArchiveFilesModel : public SmTreeModel { QSet<int> mSeriesPartIds; QHash<int, QString> mRoleDbColumnMap; QSqlDatabase mDb; + quint64 mTotalSize; + quint64 mTotalDuration; + int mTotalMovies; + int mTotalOthers; }; class ArchiveCollector : public QThread { |