Show event type for hidden events

This commit is contained in:
Tobias Fella
2025-04-20 15:17:58 +02:00
parent f4799a4287
commit 5262ec4b56
3 changed files with 9 additions and 1 deletions

View File

@@ -309,6 +309,10 @@ QVariant MessageModel::data(const QModelIndex &idx, int role) const
return true;
}
if (role == EventTypeRole) {
return event.value().get().matrixType();
}
return {};
}
@@ -338,6 +342,7 @@ QHash<int, QByteArray> MessageModel::roleNames() const
roles[MediaInfoRole] = "mediaInfo";
roles[IsEditableRole] = "isEditable";
roles[ShowAuthorRole] = "showAuthor";
roles[EventTypeRole] = "eventType";
return roles;
}