Commit 4f1091f1 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

[Kickoff] Use KFilePlacesModel groups

This groups entries in Places under the same categories (Places, Recently Saved,
Remote, Devices, etc) as in all other places where Places are shown

Differential Revision: https://phabricator.kde.org/D14030
parent 1cdb7ae4
......@@ -234,11 +234,7 @@ QVariant ComputerModel::data(const QModelIndex &index, int role) const
} else if (role == Kicker::UrlRole) {
return m_filteredPlacesModel->url(sourceIndex);
} else if (role == Kicker::GroupRole) {
if (m_filteredPlacesModel->isDevice(sourceIndex)) {
return i18n("Removable Storage");
} else {
return i18n("Places");
}
return sourceIndex.data(KFilePlacesModel::GroupRole).toString();
} else if (role == Qt::DisplayRole || role == Qt::DecorationRole) {
return sourceIndex.data(role);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment