Playlist: add newly-added columns

Still mostly boilter-plate-y. It is somewhat interesting to see that info
in playlist view, so add the two fileds as columns.

At least for Integrated loudness, since it's normally negative,
we need to add a specialized Delegate.
This commit is contained in:
Roman Lebedev
2023-06-27 04:57:35 +03:00
committed by Jonas Kvinge
parent 44e5c32bcb
commit b2c66c9cda
5 changed files with 53 additions and 0 deletions

View File

@@ -231,4 +231,20 @@ class RatingItemDelegate : public PlaylistDelegateBase {
QModelIndexList selected_indexes_;
};
class Ebur128LoudnessLUFSItemDelegate : public PlaylistDelegateBase {
Q_OBJECT
public:
explicit Ebur128LoudnessLUFSItemDelegate(QObject *parent) : PlaylistDelegateBase(parent) {}
QString displayText(const QVariant &value, const QLocale &locale) const override;
};
class Ebur128LoudnessRangeLUItemDelegate : public PlaylistDelegateBase {
Q_OBJECT
public:
explicit Ebur128LoudnessRangeLUItemDelegate(QObject *parent) : PlaylistDelegateBase(parent) {}
QString displayText(const QVariant &value, const QLocale &locale) const override;
};
#endif // PLAYLISTDELEGATES_H