]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Add a sort by duration option for videos
authorSomsubhra Bairi <somsubhra.bairi@gmail.com>
Fri, 18 Oct 2024 02:42:06 +0000 (08:12 +0530)
committerSomsubhra Bairi <somsubhra.bairi@gmail.com>
Sat, 19 Oct 2024 14:11:46 +0000 (19:41 +0530)
BUG: 482508

Signed-off-by: Somsubhra Bairi <somsubhra.bairi@gmail.com>
src/kitemviews/kfileitemmodel.cpp

index a7796bc9330ce1774ef2faefc3d95ffd89b7ad85..3a60834af32b222ec6f2c6aad5c3b9ca3466248d 100644 (file)
@@ -2763,6 +2763,7 @@ const KFileItemModel::RoleInfoMap *KFileItemModel::rolesInfoMap(int &count)
         { "releaseYear",         ReleaseYearRole,         kli18nc("@label", "Release Year"),         kli18nc("@label", "Audio"),    KLazyLocalizedString(),                    true,            true  },
         { "aspectRatio",         AspectRatioRole,         kli18nc("@label", "Aspect Ratio"),         kli18nc("@label", "Video"),    KLazyLocalizedString(),                    true,            true  },
         { "frameRate",           FrameRateRole,           kli18nc("@label", "Frame Rate"),           kli18nc("@label", "Video"),    KLazyLocalizedString(),                    true,            true  },
+        { "duration",            DurationRole,            kli18nc("@label", "Duration"),             kli18nc("@label", "Video"),    KLazyLocalizedString(),                    true,            true  },
         { "path",                PathRole,                kli18nc("@label", "Path"),                 kli18nc("@label", "Other"),    KLazyLocalizedString(),                    false,           false },
         { "extension",           ExtensionRole,           kli18nc("@label", "File Extension"),       kli18nc("@label", "Other"),    KLazyLocalizedString(),                    false,           false },
         { "deletiontime",        DeletionTimeRole,        kli18nc("@label", "Deletion Time"),        kli18nc("@label", "Other"),    KLazyLocalizedString(),                    false,           false },