mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-28 14:20:30 +00:00
Qt: Use same size for serial across platforms
And center the field to compensate.
This commit is contained in:
parent
b98d521ff9
commit
3ba05f182f
@ -576,12 +576,21 @@ QVariant GameListModel::data(const QModelIndex& index, int role, const GameList:
|
||||
|
||||
case Qt::TextAlignmentRole:
|
||||
{
|
||||
const int column = index.column();
|
||||
if (column == Column_FileSize || column == Column_UncompressedSize)
|
||||
switch (index.column())
|
||||
{
|
||||
case Column_FileSize:
|
||||
case Column_UncompressedSize:
|
||||
return (Qt::AlignRight | Qt::AlignVCenter).toInt();
|
||||
else
|
||||
|
||||
case Column_Serial:
|
||||
case Column_Year:
|
||||
case Column_Players:
|
||||
return (Qt::AlignCenter | Qt::AlignVCenter).toInt();
|
||||
|
||||
default:
|
||||
return {};
|
||||
}
|
||||
}
|
||||
|
||||
case Qt::InitialSortOrderRole:
|
||||
{
|
||||
@ -1596,11 +1605,7 @@ void GameListListView::resizeColumnsToFit()
|
||||
{
|
||||
QtUtils::ResizeColumnsForTableView(this, {
|
||||
45, // type
|
||||
#ifdef __APPLE__
|
||||
95, // serial
|
||||
#else
|
||||
80, // serial
|
||||
#endif
|
||||
-1, // title
|
||||
-1, // file title
|
||||
200, // developer
|
||||
|
Loading…
x
Reference in New Issue
Block a user