Commit 1579a3c5 authored by Lamarque Souza's avatar Lamarque Souza
Browse files

Sort images by filename in active-imageviewer. It's static sorting, that

is, newer images will be appended to grid view end. Reopen imageviewer
to sort them again.
I think we can implement dynamic sorting using QSortFilterProxyModel as
the base class of MetadataModel instead of AbstractMetadataModel.
The sorting is case sensitive too. I have not figure out how to solve
this yet.

CCBUG: 284672
(cherry picked from commit 3531ed45)
parent a859613a
......@@ -75,7 +75,7 @@ Image {
MetadataModels.MetadataModel {
id: metadataModel
resourceType: "nfo:Image"
sortBy: [userTypes.sortFields[itemGroup.category]]
sortBy: [userTypes.sortFields[resourceType]]
sortOrder: Qt.AscendingOrder
property bool starting: true
onStatusChanged: {
......
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