Skip to content

Qt: More accurate game list column width estimation #3505

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025

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