]> cloud.milkyroute.net Git - dolphin.git/commit
Port from KStringHandler naturalCompare to QCollator compare.
authorEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Sat, 13 Dec 2014 19:31:01 +0000 (20:31 +0100)
committerEmmanuel Pescosta <emmanuelpescosta099@gmail.com>
Wed, 17 Dec 2014 16:48:10 +0000 (17:48 +0100)
commit95220eebae1be024b84b069ce9ae4be35c9e6a5f
treedae8f37c32901ca29bb9e11b0e4697163a194808
parentb5fc0369993986c2e47abf223dd659f8820894bf
Port from KStringHandler naturalCompare to QCollator compare.

Make use of the QCollator instance (m_collator) in nameRoleGroups instead of using QString::localeAwareCompare (uses QCollator internally)

We don't need the m_caseSensitivity anymore, because the QCollator instance also holds this information.

(This patch doesn't make use of QCollatorSortKey)

Reviewed by Kai

REVIEW: 121480
src/kitemviews/kfileitemmodel.cpp
src/kitemviews/kfileitemmodel.h