mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-29 14:14:15 +02:00
3457a88e81
Element::editProperty() gave PropertiesEditorDialog no size of its own, so the dialog fell back to its sizeHint, which is sized for the compact general-purpose editors it usually hosts. A PLC master instead shows a six-column IO table that grows horizontally, and the dialog came out too narrow to read those columns in. For a master whose type is PLC, resize the dialog to three times its natural width before exec(), keeping the natural height. The width is clamped to the available screen so it cannot run off the display, and every other element type opens exactly as before.