~neon/kactivities/master

Viewing all changes in revision 968.

  • Committer: David Edmundson
  • Date: 2019-02-12 12:55:06 UTC
  • Revision ID: git-v1:b344bc2e3468c24124aa83f11b3b2498a882a40f
Use natural sorting in ActivityModel

Summary:
ActivityModel sorts internally.
It currently does a non-locale or number aware sort on user-facing
strings.

This patches uses QCollator.

This changes the order in the KCM.

It doesn't affect the order in the activity switcher as that has it's
own sorting proxy on top handling last used time.

It doesn't quite fix the issue in the bug report as PagerModel mixes
sources.

CCBUG: 404149

Test Plan:
Set activities named
"10.asdf"
"1.foo"
"2.bar"

KCM now shows them in the order 1,2,10

Reviewers: #plasma

Subscribers: kde-frameworks-devel

Tags: #frameworks

Differential Revision: https://phabricator.kde.org/D18957

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: