From 38c4c0772bc3eb684d00be2071ff3c65d76cdaab Mon Sep 17 00:00:00 2001 From: evgeny Date: Sun, 4 Oct 2026 15:54:06 +0200 Subject: [PATCH] Use explicit cursor index type for Qt 5 and Qt 6 --- tools/chatgui/src/messagedelegate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/chatgui/src/messagedelegate.cpp b/tools/chatgui/src/messagedelegate.cpp index 789c097f..efa98d28 100644 --- a/tools/chatgui/src/messagedelegate.cpp +++ b/tools/chatgui/src/messagedelegate.cpp @@ -1378,7 +1378,7 @@ void MessageDelegate::paint(QPainter *painter, const QStyleOptionViewItem &optio layoutInviteText(layout, L.textRect.width()); QVector selections; if (singleTextSel && cv) { - auto cursorAt = [&](const QPoint& point) { + auto cursorAt = [&](const QPoint& point) -> int { for (int i = 0; i < layout.lineCount(); ++i) { const auto line = layout.lineAt(i); if (point.y() < line.y() + line.height()) return line.xToCursor(point.x());