diff options
author | naf <naf@sdf.org> | 2021-02-02 13:25:52 -0600 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-02-21 10:17:07 +0000 |
commit | 95f3d1b0750044967c6cf2f767d809453ca7819b (patch) | |
tree | 87be282084499a00e0b8172e2be0cf02917fd1b3 /ui/qt/wireshark_pl.ts | |
parent | cd77e5aa5ff7b1bb95dc1e935db50a168eceb6e0 (diff) |
QT ByteViewText: calculate string widths consistently to prevent clipping
For QT >5.11, stringWidth() uses horizontalAdvance, which gives different
(longer) widths than the old boundingRect().width() method.
Other locations use the boundRect().width() method directly, resulting
in underestimating line widths and clipping the last characters in
the byte view window.
Fix by forcing all width calculations to use stringWidth().
Closes #17087.
Diffstat (limited to 'ui/qt/wireshark_pl.ts')
0 files changed, 0 insertions, 0 deletions