D24951: [KOpenWithDialog] Automatically select the result if the model filter has only one match
Ahmad Samir
noreply at phabricator.kde.org
Tue Oct 29 07:24:11 GMT 2019
ahmadsamir added a comment.
In D24951#554516 <https://phabricator.kde.org/D24951#554516>, @dfaure wrote:
> A sort model allows to define any sorting criteria you want (see QSortFilterProxyModel::lessThan), so this is technically possible: the criteria would say "if A is a match and B isn't, then A<B is true".
> I'm not 100% sure that things jumping around while typing is a good idea though.
In this case it would have to be "if A is shorter than B"; also this is a tree model, we want to sort based on the leaf nodes (.desktop Name=), but not on parent nodes (the category names), I am not sure that is possible/straightforward with that item model.
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D24951
To: ahmadsamir, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, GB_2, michaelh, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20191029/ac51c88c/attachment-0001.html>
More information about the Kde-frameworks-devel
mailing list