Skip to content

Qt: More accurate game list column width estimation#3505

Merged
stenzek merged 1 commit intostenzek:masterfrom
Pesa:year-col-width
Aug 11, 2025
Merged

Qt: More accurate game list column width estimation#3505
stenzek merged 1 commit intostenzek:masterfrom
Pesa:year-col-width

Conversation

@Pesa
Copy link
Contributor

@Pesa Pesa commented Aug 11, 2025

Three main changes:

  1. Use the pixel metrics of the style instead of hardcoded values.
  2. Account for the potential sort indicator in the column header.
  3. In the two "Size" columns, the largest numerical value does not necessarily result in the widest text string, so just use the value 8888.88 to estimate the width (we assume that 8 is the widest digit, which is true for many proportional fonts).

Three main changes:
1. Use the pixel metrics of the style instead of hardcoded values.
2. Account for the potential sort indicator in the column header.
3. In the two "Size" columns, the largest numerical value does not
   necessarily result in the widest text string, so just use the
   value 8888.88 to estimate the width (we assume that 8 is the
   widest digit, which is true for many proportional fonts).
@stenzek stenzek merged commit de2d6d1 into stenzek:master Aug 11, 2025
11 checks passed
@Pesa Pesa deleted the year-col-width branch August 11, 2025 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants