mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-02 08:24:14 +02:00
cc0521bfe5
A dragged shape put its pos() on the grid. pos() cannot be seen, and it is off the drawn corner whenever the shape was drawn or resized with Ctrl held, or rotated, so such a shape stayed off the grid however it was dragged. Worse, Snap to grid (previous commit) moves pos() off the grid to put the corner on it, so the next drag undid the snap. QetShapeItem now overrides setPos(), which only the drag calls through the virtual: dragged alone or with other shapes only, the top-left corner of the drawn outline goes on the grid. Dragged together with anything else it snaps by pos() as before, because the rest of the selection follows this shape's movement and a corner correction would take the symbols off the grid. Ctrl still drags freely: the snap goes through Diagram::snapToGrid(), which reads it. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>