From f63daef339dde16c7ef598f6fdaa5d2191da4685 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 27 Oct 2011 22:34:33 +0200 Subject: Fix minor visual issues in the view-engine - Increasing the window-size should not result in increasing the size from previously invisible items - Rename group 'Numerics' to '0 - 9' - Fix "damaged" icons when changing the view-sizes or changing the view-mode --- src/kitemviews/kfileitemmodel.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/kitemviews/kfileitemmodel.cpp') diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp index 5ccca5a94..272654872 100644 --- a/src/kitemviews/kfileitemmodel.cpp +++ b/src/kitemviews/kfileitemmodel.cpp @@ -1190,13 +1190,15 @@ QList > KFileItemModel::nameRoleGroups() const newGroupValue = newFirstChar; isLetter = true; } else if (newFirstChar >= QLatin1Char('0') && newFirstChar <= QLatin1Char('9')) { - // Apply group 'Numerics' for any name that starts with a digit - newGroupValue = i18nc("@title:group", "Numerics"); + // Apply group '0 - 9' for any name that starts with a digit + newGroupValue = i18nc("@title:group Groups that start with a digit", "0 - 9"); isLetter = false; } else { if (isLetter) { // If the current group is 'A' - 'Z' check whether a locale character // fits into the existing group. + // TODO: This does not work in the case if e.g. the group 'O' starts with + // an umlaut 'O' -> provide unit-test to document this known issue const QChar prevChar(firstChar.unicode() - ushort(1)); const QChar nextChar(firstChar.unicode() + ushort(1)); const QString currChar(newFirstChar); -- cgit v1.3