Rename NameRole to DisplayNameRole in UserListModel

This commit is contained in:
Tobias Fella
2023-05-17 23:46:36 +02:00
parent 4dcb19edb7
commit 6a68375b10
4 changed files with 7 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ public:
* @brief Defines the model roles.
*/
enum EventRoles {
NameRole = Qt::UserRole + 1, /**< The user's display name in the current room. */
DisplayNameRole = Qt::DisplayRole, /**< The user's display name in the current room. */
UserIdRole, /**< Matrix ID of the user. */
AvatarRole, /**< The source URL for the user's avatar in the current room. */
ObjectRole, /**< The QObject for the user. */
@@ -61,7 +61,7 @@ public:
*
* @sa QAbstractItemModel::data
*/
[[nodiscard]] QVariant data(const QModelIndex &index, int role = NameRole) const override;
[[nodiscard]] QVariant data(const QModelIndex &index, int role) const override;
/**
* @brief Number of rows in the model.