Qt: fix initial trophy icon background color

This commit is contained in:
Megamouse 2019-08-10 11:18:37 +02:00
parent 01720afba9
commit efcb46658b

View File

@ -785,7 +785,6 @@ void trophy_manager_dialog::PopulateTrophyTable()
QString unlockstate = data->trop_usr->GetTrophyUnlockState(trophy_id) ? tr("Unlocked") : tr("Locked");
custom_table_widget_item* icon_item = new custom_table_widget_item();
icon_item->setData(Qt::DecorationRole, data->trophy_images[trophy_id].scaledToHeight(m_icon_height, Qt::SmoothTransformation));
icon_item->setData(Qt::UserRole, hidden, true);
custom_table_widget_item* type_item = new custom_table_widget_item(trophy_type);
@ -803,7 +802,7 @@ void trophy_manager_dialog::PopulateTrophyTable()
m_trophy_table->setSortingEnabled(true); // Re-enable sorting after using setItem calls
ReadjustTrophyTable();
ResizeTrophyIcons();
}
void trophy_manager_dialog::ReadjustGameTable()