Changeset View
Changeset View
Standalone View
Standalone View
src/alltracksmodel.h
Show All 35 Lines | 35 | public: | |||
---|---|---|---|---|---|
36 | 36 | | |||
37 | enum ColumnsRoles { | 37 | enum ColumnsRoles { | ||
38 | TitleRole = Qt::UserRole + 1, | 38 | TitleRole = Qt::UserRole + 1, | ||
39 | DurationRole = TitleRole + 1, | 39 | DurationRole = TitleRole + 1, | ||
40 | MilliSecondsDurationRole = DurationRole + 1, | 40 | MilliSecondsDurationRole = DurationRole + 1, | ||
41 | CreatorRole = MilliSecondsDurationRole + 1, | 41 | CreatorRole = MilliSecondsDurationRole + 1, | ||
42 | ArtistRole = CreatorRole + 1, | 42 | ArtistRole = CreatorRole + 1, | ||
43 | AlbumRole = ArtistRole + 1, | 43 | AlbumRole = ArtistRole + 1, | ||
44 | TrackNumberRole = AlbumRole + 1, | 44 | AlbumArtistRole = AlbumRole + 1, | ||
45 | TrackNumberRole = AlbumArtistRole + 1, | ||||
45 | DiscNumberRole = TrackNumberRole + 1, | 46 | DiscNumberRole = TrackNumberRole + 1, | ||
46 | RatingRole = DiscNumberRole + 1, | 47 | RatingRole = DiscNumberRole + 1, | ||
47 | ImageRole = RatingRole + 1, | 48 | ImageRole = RatingRole + 1, | ||
48 | ResourceRole = ImageRole + 1, | 49 | ResourceRole = ImageRole + 1, | ||
49 | IdRole = ResourceRole + 1, | 50 | IdRole = ResourceRole + 1, | ||
50 | DatabaseIdRole = IdRole + 1, | 51 | DatabaseIdRole = IdRole + 1, | ||
51 | TrackDataRole = DatabaseIdRole + 1, | 52 | IsSingleDiscAlbumRole = DatabaseIdRole + 1, | ||
53 | TrackDataRole = IsSingleDiscAlbumRole + 1, | ||||
52 | }; | 54 | }; | ||
53 | 55 | | |||
54 | Q_ENUM(ColumnsRoles) | 56 | Q_ENUM(ColumnsRoles) | ||
55 | 57 | | |||
56 | explicit AllTracksModel(QObject *parent = nullptr); | 58 | explicit AllTracksModel(QObject *parent = nullptr); | ||
57 | 59 | | |||
58 | ~AllTracksModel() override; | 60 | ~AllTracksModel() override; | ||
59 | 61 | | |||
Show All 29 Lines |