summaryrefslogtreecommitdiffstats
path: root/archivebrowsermodel.h
diff options
context:
space:
mode:
authorArno <arno@disconnect.de>2025-04-29 11:27:51 +0200
committerArno <arno@disconnect.de>2025-04-29 11:27:51 +0200
commita3b79646fe6984b0f2203ed9819ba03b0a4db978 (patch)
tree4776207df9d1ef77cbe6010a4d47bab8f1f6f60d /archivebrowsermodel.h
parent48cc96e4b51706796c119eb953706c61b9c60228 (diff)
downloadSheMov-a3b79646fe6984b0f2203ed9819ba03b0a4db978.tar.gz
SheMov-a3b79646fe6984b0f2203ed9819ba03b0a4db978.tar.bz2
SheMov-a3b79646fe6984b0f2203ed9819ba03b0a4db978.zip
Display Genres in ArchiveBrowser
This takes quite a toll on the startup time, because it executes an extra Query for each item in the archive, but I hope it's worth it. The final goal being to filter the archive by genres, so uninteresting moves can be moved easier.
Diffstat (limited to 'archivebrowsermodel.h')
-rw-r--r--archivebrowsermodel.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/archivebrowsermodel.h b/archivebrowsermodel.h
index c72fe9e..7d0d263 100644
--- a/archivebrowsermodel.h
+++ b/archivebrowsermodel.h
@@ -17,8 +17,8 @@
class ArchiveBrowserModel : public SmTreeModel {
Q_OBJECT
public:
- enum CustomRoles { ExpansionRole = Qt::UserRole + 1, NameRole = Qt::UserRole + 2, GenericIdRole = Qt::UserRole + 3, NodeTypeRole = Qt::UserRole + 4, TotalSizeRole = Qt::UserRole + 5, QualityRole = 6, FileTypeRole = Qt::UserRole + 7, FullPathRole = Qt::UserRole + 8, SelectedRole = Qt::UserRole + 9 };
- enum Fields { Expansion = 0, Name = 1, GenericId = 2, NodeType = 3, TotalSize = 4, Quality = 5, FileType = 6, FullPath = 7, Selected = 8 };
+ enum CustomRoles { ExpansionRole = Qt::UserRole + 1, NameRole = Qt::UserRole + 2, GenericIdRole = Qt::UserRole + 3, NodeTypeRole = Qt::UserRole + 4, TotalSizeRole = Qt::UserRole + 5, QualityRole = 6, FileTypeRole = Qt::UserRole + 7, FullPathRole = Qt::UserRole + 8, SelectedRole = Qt::UserRole + 9, GenreRole = Qt::UserRole + 10 };
+ enum Fields { Expansion = 0, Name = 1, GenericId = 2, NodeType = 3, TotalSize = 4, Quality = 5, FileType = 6, FullPath = 7, Selected = 8, Genres = 9 };
enum NodeTypes { SeriesPartNode = 1, FileNode = 2 };
explicit ArchiveBrowserModel(const QStringList &headers, QObject *parent = nullptr);
virtual QVariant data(const QModelIndex &index, int role) const;