diff --git a/src/gui/macOS/fileprovidermaterialiseditemsmodel.cpp b/src/gui/macOS/fileprovidermaterialiseditemsmodel.cpp index 7a06f42e81f08..35bce50dc50f6 100644 --- a/src/gui/macOS/fileprovidermaterialiseditemsmodel.cpp +++ b/src/gui/macOS/fileprovidermaterialiseditemsmodel.cpp @@ -96,6 +96,8 @@ QVariant FileProviderMaterialisedItemsModel::data(const QModelIndex &index, int return item.sharedByCurrentUser(); case UserVisiblePathRole: return item.userVisiblePath(); + case FileTypeRole: + return item.fileTypeString(); } return {}; } @@ -133,6 +135,7 @@ QHash FileProviderMaterialisedItemsModel::roleNames() const { SharedRole, "shared" }, { SharedByCurrentUserRole, "sharedByCurrentUser" }, { UserVisiblePathRole, "userVisiblePath" }, + { FileTypeRole, "fileType" }, }); return roleNames; } diff --git a/src/gui/macOS/fileprovidermaterialiseditemsmodel.h b/src/gui/macOS/fileprovidermaterialiseditemsmodel.h index b2870535c9d4f..faae4b9598cca 100644 --- a/src/gui/macOS/fileprovidermaterialiseditemsmodel.h +++ b/src/gui/macOS/fileprovidermaterialiseditemsmodel.h @@ -59,6 +59,7 @@ class FileProviderMaterialisedItemsModel : public QAbstractListModel SharedRole, SharedByCurrentUserRole, UserVisiblePathRole, + FileTypeRole, }; Q_ENUM(Roles)