-
Notifications
You must be signed in to change notification settings - Fork 350
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The algorithm fitting the text into a given width was slow as reported here: #4626 This PR replaces the code with the methods Qt provides for this purpose. Since Qt does things different from what was implemented before we get some changed behaviour: Most notably we don't render text into any timers that are too small to fit at least "W...". Also, instead of truncating short texts, we now truncate and add "...". Since the behaviour is changed it is a bit hard estimate the performance gain. Measurements suggest ~4-5x with test cases that previously did a lot of calls in the code fitting the strings into a given width. I think this largely solves the issue in the bug above.
- Loading branch information
1 parent
da8143d
commit ea4c543
Showing
3 changed files
with
72 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters