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:
committed by
Jonas Kvinge
parent
44e5c32bcb
commit
b2c66c9cda
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user