1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-14 09:44:51 +01:00

Replace Q_ENUMS with Q_ENUM

This commit is contained in:
Jonas Kvinge 2021-06-25 18:06:30 +02:00
parent 53cc47a8b1
commit df31b5d59f

View File

@ -60,8 +60,6 @@ class CollectionDirectoryModel;
class CollectionModel : public SimpleTreeModel<CollectionItem> { class CollectionModel : public SimpleTreeModel<CollectionItem> {
Q_OBJECT Q_OBJECT
Q_ENUMS(GroupBy) // clazy:exclude=qenums
public: public:
explicit CollectionModel(CollectionBackend *backend, Application *app, QObject *parent = nullptr); explicit CollectionModel(CollectionBackend *backend, Application *app, QObject *parent = nullptr);
~CollectionModel() override; ~CollectionModel() override;
@ -107,6 +105,7 @@ class CollectionModel : public SimpleTreeModel<CollectionItem> {
GroupBy_Bitrate = 20, GroupBy_Bitrate = 20,
GroupByCount = 21, GroupByCount = 21,
}; };
Q_ENUM(GroupBy)
struct Grouping { struct Grouping {
explicit Grouping(GroupBy f = GroupBy_None, GroupBy s = GroupBy_None, GroupBy t = GroupBy_None) explicit Grouping(GroupBy f = GroupBy_None, GroupBy s = GroupBy_None, GroupBy t = GroupBy_None)