Qt: fix visibility check of table widget items

This commit is contained in:
Megamouse 2025-04-10 00:37:55 +02:00
parent bcb5041df2
commit b1faa32938

View file

@ -22,7 +22,7 @@ void game_list_delegate::paint(QPainter* painter, const QStyleOptionViewItem& op
visible_region.translate(-table->verticalHeader()->width(), -table->horizontalHeader()->height());
if (const QTableWidgetItem* current_item = table->item(index.row(), index.column());
current_item && visible_region.intersects(table->visualItemRect(current_item)))
current_item && visible_region.boundingRect().intersects(table->visualItemRect(current_item)))
{
if (movie_item* item = static_cast<movie_item*>(table->item(index.row(), static_cast<int>(gui::game_list_columns::icon))))
{