From 4a20371b870f59b72ca831480054e4da4088e525 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 20 May 2025 16:52:47 -0400 Subject: [PATCH] Make sure the MessageContentModel starts at UserRole If it doesn't, then our roles start filling up the other Qt ones such as AccessibleDescription. Instead we need to start UserRole (except for DisplayRole of course.) --- src/timeline/models/messagecontentmodel.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timeline/models/messagecontentmodel.h b/src/timeline/models/messagecontentmodel.h index 78b6d02fb..b9f7f12c2 100644 --- a/src/timeline/models/messagecontentmodel.h +++ b/src/timeline/models/messagecontentmodel.h @@ -41,7 +41,7 @@ public: */ enum Roles { DisplayRole = Qt::DisplayRole, /**< The display text for the message. */ - ComponentTypeRole, /**< The type of component to visualise the message. */ + ComponentTypeRole = Qt::UserRole, /**< The type of component to visualise the message. */ ComponentAttributesRole, /**< The attributes of the component. */ EventIdRole, /**< The matrix event ID of the event. */ TimeRole, /**< The timestamp for when the event was sent (as a QDateTime). */