Commit 7ccbdb32 authored by Fushan Wen's avatar Fushan Wen Committed by Nate Graham
Browse files

foldermodel: Drop overlay(s) to icons in plasma folder view

The overlay is already handled by KDirModel after frameworks/kio@c88c4c65

BUG: 444514


(cherry picked from commit b28e7f23)
parent e880214d
......@@ -292,7 +292,6 @@ Item {
smooth: true
source: model.decoration
overlays: model.overlays
}
Rectangle {
......
......@@ -216,7 +216,6 @@ QHash<int, QByteArray> FolderModel::staticRoleNames()
roleNames[Qt::DisplayRole] = "display";
roleNames[Qt::DecorationRole] = "decoration";
roleNames[BlankRole] = "blank";
roleNames[OverlaysRole] = "overlays";
roleNames[SelectedRole] = "selected";
roleNames[IsDirRole] = "isDir";
roleNames[IsLinkRole] = "isLink";
......@@ -1297,9 +1296,6 @@ QVariant FolderModel::data(const QModelIndex &index, int role) const
if (role == BlankRole) {
return m_dragIndexes.contains(index);
} else if (role == OverlaysRole) {
const KFileItem item = itemForIndex(index);
return item.overlays();
} else if (role == SelectedRole) {
return m_selectionModel->isSelected(index);
} else if (role == IsDirRole) {
......
......@@ -92,7 +92,6 @@ class FOLDERPLUGIN_TESTS_EXPORT FolderModel : public QSortFilterProxyModel, publ
public:
enum DataRole {
BlankRole = Qt::UserRole + 1,
OverlaysRole,
SelectedRole,
IsDirRole,
IsLinkRole,
......
Markdown is supported
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