Fix insane delay in report items creation by not instantiating hi-resolution QPrinter object for each item.
To be honest I am not understanding the whole word-wrapping algorithm used here.
piggz |
Fix insane delay in report items creation by not instantiating hi-resolution QPrinter object for each item.
To be honest I am not understanding the whole word-wrapping algorithm used here.
Approach 1: Run KEXI and create report with large number of pages. Use at
least one text element.
Before the fix there's noticeable O(N) delay.
Approach 2: Also if we enter static value for the text item the kreportexample
app, there is noticeable delay on each key press before this fix.
Expected: all is smooth after the fix.
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |