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,11 +576,20 @@ QVariant GameListModel::data(const QModelIndex& index, int role, const GameList:
|
|||||||
|
|
||||||
case Qt::TextAlignmentRole:
|
case Qt::TextAlignmentRole:
|
||||||
{
|
{
|
||||||
const int column = index.column();
|
switch (index.column())
|
||||||
if (column == Column_FileSize || column == Column_UncompressedSize)
|
{
|
||||||
return (Qt::AlignRight | Qt::AlignVCenter).toInt();
|
case Column_FileSize:
|
||||||
else
|
case Column_UncompressedSize:
|
||||||
return {};
|
return (Qt::AlignRight | Qt::AlignVCenter).toInt();
|
||||||
|
|
||||||
|
case Column_Serial:
|
||||||
|
case Column_Year:
|
||||||
|
case Column_Players:
|
||||||
|
return (Qt::AlignCenter | Qt::AlignVCenter).toInt();
|
||||||
|
|
||||||
|
default:
|
||||||
|
return {};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
case Qt::InitialSortOrderRole:
|
case Qt::InitialSortOrderRole:
|
||||||
@ -1596,11 +1605,7 @@ void GameListListView::resizeColumnsToFit()
|
|||||||
{
|
{
|
||||||
QtUtils::ResizeColumnsForTableView(this, {
|
QtUtils::ResizeColumnsForTableView(this, {
|
||||||
45, // type
|
45, // type
|
||||||
#ifdef __APPLE__
|
|
||||||
95, // serial
|
95, // serial
|
||||||
#else
|
|
||||||
80, // serial
|
|
||||||
#endif
|
|
||||||
-1, // title
|
-1, // title
|
||||||
-1, // file title
|
-1, // file title
|
||||||
200, // developer
|
200, // developer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user