mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-29 05:44:14 +02:00
3665ec1bcd
Conductor::paint() drew every junction as a fixed 3.0-unit ellipse, regardless of how wide the conductor carrying it is. The conductor width is user-settable from 0.4 to 20.0, so at anything above about 3.0 the dot is narrower than the line it sits on and disappears entirely -- exactly when a junction most needs to be legible. The dot now scales with m_properties.cond_size, floored at the historic 3.0 so nothing changes at or below the default width of 1.0. Only the wide conductors the report is about are affected. cond_size is used rather than the pen width because the pen is inflated by 4 while the mouse is over the conductor; the junction should not grow on hover. Measured with a temporary trace over examples/741.qet: at the default width the diameter stays 3.00, and with condsize="5" it becomes 15.00. Visually, a PNG export of that widened project shows two junctions that were invisible under the line rendering as clear dots. ctest 4/4, Qt 5.15.18. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>