From 51da48c706e28283bfb7f7ed4e70b984975e8b76 Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sat, 21 Feb 2026 00:43:33 +0100 Subject: [PATCH] Fix reply popup rendering on newer qt --- resources/qml/delegates/Reply.qml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/qml/delegates/Reply.qml b/resources/qml/delegates/Reply.qml index 77cad0f0..0bc2e4b9 100644 --- a/resources/qml/delegates/Reply.qml +++ b/resources/qml/delegates/Reply.qml @@ -64,16 +64,17 @@ AbstractButton { height: r.limitHeight ? Math.min( timelineEvent.main?.height, timelineView.height / 10) + Nheko.paddingSmall + usernameBtn.height : undefined - // FIXME: I have no idea, why this name doesn't render in the reply popup on Qt 6.9.2 AbstractButton { id: usernameBtn - visible: r.eventId - contentItem: Label { - visible: r.eventId id: userName_ - text: r.userName + // HACK: To ensure the username gets rendered in Qt 6.9.2, + // we need to always have some text in here. The name + // should never be empty, since it falls to the mxid, but + // if we have no text there, Qt culls the item, before we + // fill it... + text: r.userName || "." color: r.userColor textFormat: Text.RichText width: timelineEvent.main?.width