┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemmodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kitemviews/kfileitemmodel.cpp')
-rw-r--r--src/kitemviews/kfileitemmodel.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/kitemviews/kfileitemmodel.cpp b/src/kitemviews/kfileitemmodel.cpp
index da2126aa3..5ccca5a94 100644
--- a/src/kitemviews/kfileitemmodel.cpp
+++ b/src/kitemviews/kfileitemmodel.cpp
@@ -1168,6 +1168,13 @@ QList<QPair<int, QVariant> > KFileItemModel::nameRoleGroups() const
QChar firstChar;
bool isLetter = false;
for (int i = 0; i <= maxIndex; ++i) {
+ if (m_requestRole[ExpansionLevelRole] && m_data.at(i).value("expansionLevel").toInt() > 0) {
+ // KItemListView would be capable to show sub-groups in groups but
+ // in typical usecases this results in visual clutter, hence we
+ // just ignore sub-groups.
+ continue;
+ }
+
const QString name = m_data.at(i).value("name").toString();
// Use the first character of the name as group indication