fix text overlap in project item views

Signed-off-by: so5iso4ka <so5iso4ka@icloud.com>
This commit is contained in:
so5iso4ka 2026-04-15 22:40:54 +03:00
parent 7e8db63882
commit fa54329711
No known key found for this signature in database
GPG key ID: 89A708FD35C97ED9

View file

@ -142,7 +142,7 @@ void ProjectItemDelegate::paint(QPainter* painter, const QStyleOptionViewItem& o
description_y -= opt.fontMetrics.height();
// On the bottom, aligned to the left after the icon, and featuring at most two lines of text (with some margin space to spare)
painter->drawText(description_x, description_y, remaining_width, cut_text.size() * opt.fontMetrics.height(), Qt::TextWordWrap,
painter->drawText(description_x, description_y, remaining_width, num_lines * opt.fontMetrics.height(), Qt::TextWordWrap,
description);
}