Skip to content
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

Fix enhancement #190009: Width of custom date columns. #1258

Merged
merged 2 commits into from
Oct 17, 2020
Merged

Fix enhancement #190009: Width of custom date columns. #1258

merged 2 commits into from
Oct 17, 2020

Conversation

cbhaley
Copy link
Contributor

@cbhaley cbhaley commented Oct 17, 2020

There are two changes:

  1. the 'today' and 'clear' buttons for date columns are now right adjusted.

  2. Labels are now fixed width. Word wrap is disabled. There are two new tweaks to
    set the fixed widths for edit metadata single and bulk.

There are two changes:
1) the 'today' and 'clear' buttons for date columns are now right adjusted.

2) Labels are now fixed width. Word wrap is disabled. There are two new tweaks to
set the fixed widths for edit metadata single and bulk.
@kovidgoyal
Copy link
Owner

Maybe use QFontMetrics::averageCharWidth() for performance rather than calculating the width of a string of n's. Or if you do want to use a string of n's them maybe use m instead as that corresponds to the tradition 'em' unint.

@cbhaley
Copy link
Contributor Author

cbhaley commented Oct 17, 2020

Changed to use averageCharWidth(). This is smaller than an 'n' so I bumped the default width in the tweak up by 2.

@kovidgoyal kovidgoyal merged commit d8e5025 into kovidgoyal:master Oct 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants