summaryrefslogtreecommitdiffstats
path: root/src/gui/image
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-08-07 15:37:07 +0200
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-08-07 15:46:18 +0000
commite92c2e119beb06e3ef47ae6fd871b34ec0ef0939 (patch)
tree1d566c4c4d865ada6c798ff181dd691d633e4040 /src/gui/image
parentd7b847112a3ad9a743fd27752aa046759352f7bc (diff)
Improve readability of QTextLine's handling of (negative) right bearing
- Helper functions in LineBreakHelper have been renamed from adjustFoo to calculateFoo, to signal that they do work, and are not adjusting something relative to something else. - The use of QFixed(1) and >= 0 has been replaced with an explicit constant for the case of the bearing not being calculated yet. - A helper function negativeRightBearing() has been added that returns the absolute value of any negative right bearing, making the width computations simpler. - Comments have been added and rewritten to make the logic clearer. Change-Id: I1d3a0214cfa8b4fed4551f3444b43a37d55bd69b Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@theqtcompany.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'src/gui/image')
0 files changed, 0 insertions, 0 deletions