mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 13:24:14 +02:00
30e83d8c52
Lines, rectangles, ellipses, arcs, polygons, PLC tables and static texts now save a uuid, as terminals and dynamic texts already did, so a tool can name one part of a symbol. The graphic parts keep it next to their styles, since all of them save through stylesToXml(); a part read from a definition that predates this gets one on the next save. Paste renews them, as it already did for terminals -- and now for dynamic texts too, which were pasted with their source's uuid. A placed element gives its dynamic texts fresh uuids anyway, so only the definition's own identity changes. PartTerminal::uuid() returns the terminal's saved uuid rather than inheriting the graphic-part one it never writes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>