Fixing Header Data in AssetBrowserTableModel

This commit is contained in:
igarri
2021-06-10 15:14:35 +01:00
parent be21e585a0
commit 5a53c074c2
3 changed files with 222 additions and 216 deletions
@@ -46,16 +46,7 @@ namespace AzToolsFramework
{
if (role == Qt::DisplayRole && orientation == Qt::Horizontal)
{
auto columnRole = aznumeric_cast<AssetBrowserEntry::Column>(role);
switch (columnRole)
{
case AssetBrowserEntry::Column::Name:
return tr("Name");
case AssetBrowserEntry::Column::Path:
return tr("Path");
default:
return QString::number(section);
}
return tr(AssetBrowserEntry::m_columnNames[section]);
}
return QSortFilterProxyModel::headerData(section, orientation, role);
}