aboutsummaryrefslogtreecommitdiffstats
path: root/src/qmlcompiler/qqmlsasourcelocation.cpp
diff options
context:
space:
mode:
authorEirik Aavitsland <[email protected]>2023-11-30 09:58:28 +0100
committerEirik Aavitsland <[email protected]>2023-12-08 08:35:35 +0100
commitfa353f1c7d885c80dc70d3e7e0e1bc0a88794428 (patch)
tree405fd99156f2101ac24a60937c91d42de1f1def1 /src/qmlcompiler/qqmlsasourcelocation.cpp
parent27c98f5a9a3047b7e33c1873d5fb23e7098e9661 (diff)
Curve renderer: drop the control point magic for line elements
Now that we are adding ever more manipulations of quadpaths, relying on this silent state to not having been lost on the way is bugprone. Also, being instead able to rely on the control point of a line always being the line's midpoint, so that the element is a valid representation even if treated as quad curve, makes for more resilient code: it can make it optional whether to treat lines specially. So replace the magic value by a new Element method referencePoint(), that returns the control point for curves and the inside point for lines, and use that in the one place that used to rely on the special line control point. Change-Id: Id54b9034d23d7bc7794f2f77fab36fbfe137a60e Reviewed-by: Paul Olav Tvete <[email protected]>
Diffstat (limited to 'src/qmlcompiler/qqmlsasourcelocation.cpp')
0 files changed, 0 insertions, 0 deletions