Sort Views to display Unconfirmed Faces together
Kartik Ramesh
kartikx2000 at gmail.com
Fri Jun 12 13:17:57 BST 2020
Hello all,
I was working on the next issue in my Project which is to modify sorting of
views so that all Unconfirmed Faces for any tag appear collectively (either
before or after) the set of Confirmed Faces. This enhances visibility for
the user, and allows easy confirm/reject operations.
Sorting implementations for views are present in ItemSortSettings, so I did
a little modifications, and I've been able to sort the view as shown here
<https://imgur.com/a/xODQfgj>.
However there's an issue with this, we're not sorting Faces but instead
ItemInfos. Since every view (be it Albums view or People view) works on the
same model, this new sorting order will enforce changes on the other views
as well. I don't think it's possible for face A to appear before face B but
image A (which contains face A) appears after image B (please correct me if
wrong).
One way to fix this would be to implement a new Sorting role just for this
purpose. I also have some more fixes in mind but I would like to hear other
thoughts on this.
Kartik
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/digikam-devel/attachments/20200612/23d1c456/attachment.htm>
More information about the Digikam-devel
mailing list