@@ -520,12 +520,16 @@ void GameListModel::rowsChanged(const QList<int>& rows)
520520 }
521521}
522522
523- Qt::ItemDataRole GameListModel::getRoleToInvalidate (int column)
523+ QList< int > GameListModel::getRolesToInvalidate (int column)
524524{
525+ QList<int > ret;
526+
525527 if (column == Column_Icon || column == Column_Cover || column == Column_Region)
526- return Qt::DecorationRole;
528+ ret = { Qt::DecorationRole} ;
527529 else
528- return Qt::DisplayRole;
530+ ret = {Qt::DisplayRole, Qt::ToolTipRole};
531+
532+ return ret;
529533}
530534
531535void GameListModel::invalidateColumn (int column, bool invalidate_cache /* = true */ )
@@ -544,7 +548,7 @@ void GameListModel::invalidateColumn(int column, bool invalidate_cache /* = true
544548 }
545549 }
546550
547- emit dataChanged (index (0 , column), index (rowCount () - 1 , column), { getRoleToInvalidate (column)} );
551+ emit dataChanged (index (0 , column), index (rowCount () - 1 , column), getRolesToInvalidate (column));
548552}
549553
550554void GameListModel::invalidateColumnForPath (const std::string& path, int column, bool invalidate_cache /* = true */ )
@@ -569,7 +573,7 @@ void GameListModel::invalidateColumnForPath(const std::string& path, int column,
569573
570574 const auto remove_entry = [this , &column](const GameList::Entry* ge, int row) {
571575 const QModelIndex mi (index (row, column));
572- emit dataChanged (mi, mi, { getRoleToInvalidate (column)} );
576+ emit dataChanged (mi, mi, getRolesToInvalidate (column));
573577 };
574578
575579 if (hasTakenGameList ())
0 commit comments