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. --- delegates.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'delegates.h') diff --git a/delegates.h b/delegates.h index 72b3b13..0db3bf9 100644 --- a/delegates.h +++ b/delegates.h @@ -32,6 +32,13 @@ class FileTypeDelegate : public QStyledItemDelegate { QHash mFiletypeMap; }; +class GenreDelegate : public QStyledItemDelegate { + Q_OBJECT + public: + explicit GenreDelegate(QObject *parent = nullptr) : QStyledItemDelegate(parent) {} + virtual QString displayText(const QVariant &value, const QLocale &locale) const; +}; + class DvdNoDelegate : public QStyledItemDelegate { Q_OBJECT public: -- cgit v1.2.3-70-g09d2