QHash<QByteArray, QVariant> data;
const KFileItem item = m_model->fileItem(index);
- // Despite the name, this handles both sorting and grouping, as they happen at the same time (resorting items).
if (m_model->sortRole() == "type" || m_model->groupRole() == "type") {
if (!item.isMimeTypeKnown()) {
item.determineMimeType();