Review Request 112328: Add case sensitive sorting option to KGlobalSettings and KDirSortFilterProxyModel

arnav dhamija arnav.dhamija at gmail.com
Sat Apr 9 13:06:52 BST 2016



> On Sept. 4, 2013, 6:25 p.m., Eugene Shalygin wrote:
> > I'm thankfull to all of you for lloking into this! Now I do not know what to do with these changes. If there will bee no new kdelibs 4.x releases, how these changes can be released? Will it happen only with Frameworks 5?
> 
> Frank Reininghaus wrote:
>     To my knowledge, kde-workspace is the only part of the KDE SC that will not have a 4.12 release.
>     
>     About the "proper way" that Martin referred to: there was a discussion on the frameworks mailing list about KGlobalSettings some time ago. It starts here:
>     
>     http://comments.gmane.org/gmane.comp.kde.devel.frameworks/3976
>     
>     and ends here:
>     
>     http://mail.kde.org/pipermail/kde-frameworks-devel/2013-August/003966.html
>     
>     (I could not find a good way to link to a mail thread that spans multiple months, sorry).
>     
>     I'm not an expert for these things though, and I'm not quite sure if I understand what the "proper way" is and if it can already be applied to 4.12. If it's not possible to add that functionality to kdelibs 4.12, then we could add a Dolphin-specific setting for the case sensitivity for the rest of the 4.x era. In that case, the feature would not be available in the file dialog though (even now it's a bit weird that the file dialog picks up the "natural sorting" setting that has been configured in Dolphin and offers no way to change it, but that's another topic).
> 
> Eugene Shalygin wrote:
>     After reading the thread I have the impression that naturalSorting will also gone. Then what to do? Replace calls to KGlobalSettings in Dolphin with calls to KConfig? From that discussion I did not understand what is the "proper way" for frameworks also.  
>     
>     It is sad that these settings will not be present in 5.0 (at least in 5.0). I'm now very happy that all KDirSortFilterProxyModel are sorted in a way that I like. It would be nice to put these settings into locale settings (and KCM), but seems like KLocale is removed also :(
>
> 
> Frank Reininghaus wrote:
>     Could anyone who knows what the "proper way" is try to explain it? Thanks in advance :-)

I had submitted this as a patch for implementing case sensitive sorting in Dolphin a few months ago and it was recently merged with master: [https://git.reviewboard.kde.org/r/126467/](https://git.reviewboard.kde.org/r/126467/)

This maybe useful for this patch.


- arnav


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/112328/#review39376
-----------------------------------------------------------


On April 9, 2016, 2:17 a.m., Eugene Shalygin wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/112328/
> -----------------------------------------------------------
> 
> (Updated April 9, 2016, 2:17 a.m.)
> 
> 
> Review request for Dolphin and kdelibs.
> 
> 
> Bugs: https://bugs.kde.org/show_bug.cgi?id=148550
>     http://bugs.kde.org/show_bug.cgi?id=https://bugs.kde.org/show_bug.cgi?id=148550
> 
> 
> Repository: kdelibs
> 
> 
> Description
> -------
> 
> There are number of people who want to have case sensitive sorting in file manager and file dialogs (that would be consistent with locale settings).
> 
> The proposed patch adds a property to KGlobalSettings (caseSensitiveSorting()) and the new signal sortingModeChanged(), which deprecates naturalSortingChanged(), so the clients can connect to only one event and do not resort their models twice (maybe and option for the event to pass the change reason would be useful?).
> 
> KDirSortFilterProxyModel is changed in a trivial manner to use new event and handle case sensitivity changes.
> 
> 
> Diffs
> -----
> 
>   kdeui/kernel/kglobalsettings.h 96da20e 
>   kdeui/kernel/kglobalsettings.cpp 2e3a7eb 
>   kfile/kdirsortfilterproxymodel.h 63cf04c 
>   kfile/kdirsortfilterproxymodel.cpp 34ddcd2 
> 
> Diff: https://git.reviewboard.kde.org/r/112328/diff/
> 
> 
> Testing
> -------
> 
> Manual
> 
> 
> Thanks,
> 
> Eugene Shalygin
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20160409/a094bba0/attachment.htm>


More information about the kfm-devel mailing list