D24951: [KOpenWithDialog] Automatically select the result if the model filter has only one match
Ahmad Samir
noreply at phabricator.kde.org
Sat Oct 26 23:13:33 BST 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 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".
hmm... I was wrong then. It would complicate the code for a corner case; how many app names used today are substrings of other app names...
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/20191026/03c85447/attachment.html>
More information about the Kde-frameworks-devel
mailing list