Commit 5a2cdef7 authored by Shantanu Tushar's avatar Shantanu Tushar
Browse files

Allow sorting tracks using file modification time

As a user this is nice when I recently bought some songs and I want to
play them in order (newest first, for example)
parent e22f125e
Pipeline #184135 passed with stage
in 5 minutes and 13 seconds
......@@ -92,12 +92,15 @@ public:
DataTypes::TitleRole,
{DataTypes::TitleRole, DataTypes::AlbumRole, DataTypes::ArtistRole,
DataTypes::GenreRole, DataTypes::YearRole, DataTypes::DurationRole,
DataTypes::ComposerRole, DataTypes::LyricistRole},
DataTypes::ComposerRole, DataTypes::LyricistRole,
DataTypes::FileModificationTime},
{i18n("Title"), i18n("Album"), i18n("Artist"), i18n("Genre"),
i18n("Year"), i18n("Duration"), i18n("Composer"), i18n("Lyricist")},
i18n("Year"), i18n("Duration"), i18n("Composer"), i18n("Lyricist"),
i18n("Last Modified")},
Qt::AscendingOrder,
{i18n("A-Z"), i18n("Z-A"), i18n("A-Z"), i18n("Z-A"), i18n("A-Z"), i18n("Z-A"), i18n("A-Z"), i18n("Z-A"),
i18n("Oldest First"), i18n("Newest First"), i18n("Shortest First"), i18n("Longest First"), i18n("A-Z"), i18n("Z-A"), i18n("A-Z"), i18n("Z-A")},
i18n("Oldest First"), i18n("Newest First"), i18n("Shortest First"), i18n("Longest First"), i18n("A-Z"), i18n("Z-A"), i18n("A-Z"), i18n("Z-A"),
i18n("Oldest First"), i18n("Newest First")},
ViewManager::MultipleAlbum,
ViewManager::NoDiscHeaders,
ViewManager::IsTrack,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment