mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-23 07:04:14 +02:00
6e83012109
The strip seen from above drew no cable at all: it had no zone for one and no code to draw it, so a strip drawn realistically told nothing about where its cables go while the same strip drawn schematically did. The drawing itself was already shared between nothing -- it lived in one style only, so it is now Helpers::drawCables() with its cells, and both styles hand it the terminals they show. The realistic style collects one wire exit per level spread over the width of the terminal body, all of them leaving the strip at its bottom edge, and reserves the zone under the strip for them as soon as one terminal carries a cable, exactly like the schematic style does. tst_cabletarget checks the realistic style paints under the body of the strip when a terminal carries a cable, and drops that zone when it does not.