mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-04 18:04:14 +02:00
c69e5747a1
Elements already inherited QetGraphicsItem::isMovable()/setMovable() -- the same mechanism images and drawn shapes use for their "lock position" checkbox -- but nothing exposed it in the element properties panel, and Element::toXml()/fromXml() never persisted it. - ElementPropertiesWidget::generalWidget(): add a "Verrouiller la position" checkbox mirroring ShapeGraphicsItemPropertiesWidget's m_lock_pos_cb, toggling the element's inherited setMovable(). - Element::toXml()/fromXml(): persist is_movable, same attribute name and default-true behavior as DiagramImageItem/QetShapeItem. Verified via headless --resave round-trip: is_movable="0" survives load -> save unchanged, existing elements without the attribute default to movable. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HdWpDp3TrPKbHnv7YUcNJj