mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-23 23:44:13 +02:00
337502edfc
An element whose name must not be drawn left its label field behind as an empty frame: selected along with the element, ready to click, drawing nothing. The field now follows the Show name box both ways: - a field bound to the label is hidden while Element::labelShown() says no, and shown again the moment the box is ticked again, both through the same signals which refresh the text (elementInfoChange, the label connection refresh, binding the field to another information), so it can never get stuck on one side; - a hidden field is deselected and gets no resize handles, and one which comes back gets its handles back when its element is still selected; - every other field, composite texts included, is drawn as always, and the data of the element never changes - only the drawing. Adds a test: the field is visible, goes away with the name, and comes back with it.