┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/kitemviews/kfileitemlistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kitemviews/kfileitemlistview.cpp')
-rw-r--r--src/kitemviews/kfileitemlistview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/kitemviews/kfileitemlistview.cpp b/src/kitemviews/kfileitemlistview.cpp
index f8a58ae51..03f379837 100644
--- a/src/kitemviews/kfileitemlistview.cpp
+++ b/src/kitemviews/kfileitemlistview.cpp
@@ -515,8 +515,8 @@ QSizeF KFileItemListView::visibleRoleSizeHint(int index, const QByteArray& role)
if (role == "name") {
// Increase the width by the expansion-toggle and the current expansion level
- const int expansionLevel = values.value("expansionLevel", 0).toInt();
- width += option.padding + expansionLevel * itemSize().height() + KIconLoader::SizeSmall;
+ const int expandedParentsCount = values.value("expandedParentsCount", 0).toInt();
+ width += option.padding + expandedParentsCount * itemSize().height() + KIconLoader::SizeSmall;
// Increase the width by the required space for the icon
width += option.padding * 2 + option.iconSize;
@@ -582,7 +582,7 @@ void KFileItemListView::applyRolesToModel()
if (m_itemLayout == DetailsLayout) {
roles.insert("isExpanded");
roles.insert("isExpandable");
- roles.insert("expansionLevel");
+ roles.insert("expandedParentsCount");
}
// Assure that the role that is used for sorting will be determined