Skip to content

Commit

Permalink
Expose items' domain identifier in FileProviderMaterialisedItemsModel
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Oct 31, 2023
1 parent 53e9d51 commit 9a581c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/macOS/fileprovidermaterialiseditemsmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ QVariant FileProviderMaterialisedItemsModel::data(const QModelIndex &index, int
return item.identifier();
case ParentItemIdentifierRole:
return item.parentItemIdentifier();
case DomainIdentifierRole:
return item.domainIdentifier();
case TypeIdentifierRole:
return item.typeIdentifier();
case SymlinkTargetPathRole:
Expand Down Expand Up @@ -108,6 +110,7 @@ QHash<int, QByteArray> FileProviderMaterialisedItemsModel::roleNames() const
roleNames.insert({
{ IdentifierRole, "identifier" },
{ ParentItemIdentifierRole, "parentItemIdentifier" },
{ DomainIdentifierRole, "domainIdentifier" },
{ FilenameRole, "fileName" },
{ TypeIdentifierRole, "typeIdentifier" },
{ SymlinkTargetPathRole, "symlinkTargetPath" },
Expand Down
1 change: 1 addition & 0 deletions src/gui/macOS/fileprovidermaterialiseditemsmodel.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ class FileProviderMaterialisedItemsModel : public QAbstractListModel
enum Roles {
IdentifierRole = Qt::UserRole + 1,
ParentItemIdentifierRole,
DomainIdentifierRole,
FilenameRole,
TypeIdentifierRole,
SymlinkTargetPathRole,
Expand Down

0 comments on commit 9a581c1

Please sign in to comment.