From a3b79646fe6984b0f2203ed9819ba03b0a4db978 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 29 Apr 2025 11:27:51 +0200 Subject: 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. --- archivebrowser.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'archivebrowser.cpp') diff --git a/archivebrowser.cpp b/archivebrowser.cpp index d3d64a5..9bf7cb7 100644 --- a/archivebrowser.cpp +++ b/archivebrowser.cpp @@ -44,6 +44,7 @@ ArchiveBrowser::ArchiveBrowser(QWidget *parent) : QWidget(parent), mSelectedSize mTree->setColumnHidden(ArchiveBrowserModel::NodeType, true); mTree->setItemDelegateForColumn(ArchiveBrowserModel::TotalSize, new SizeDelegate(this)); mTree->setItemDelegateForColumn(ArchiveBrowserModel::FileType, new FileTypeDelegate(this)); + mTree->setItemDelegateForColumn(ArchiveBrowserModel::Genres, new GenreDelegate(this)); mTree->setSelectionMode(QAbstractItemView::ExtendedSelection); QToolBar *toolBar = new QToolBar; -- cgit v1.2.3-70-g09d2