Use explicit cursor index type for Qt 5 and Qt 6

This commit is contained in:
evgeny committed 2026-10-04 15:54:06 +02:00
1 parent 69442dcbb8
commit 38c4c0772b
1 file changed
+1 -1
+1 -1
View File
@@ -1378,7 +1378,7 @@ void MessageDelegate::paint(QPainter *painter, const QStyleOptionViewItem &optio
layoutInviteText(layout, L.textRect.width());
QVector<QTextLayout::FormatRange> 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());