mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-09-28 04:54:13 +02:00
7afc1eb56b
GitHub issue #663: the "Informations" tab in the element editor's properties dialog was only made visible for Simple and Master basetypes (setTabVisible gate in on_m_base_type_cb_currentIndexChanged), hiding it entirely for Slave and Terminal Block elements. This wasn't a data-model limitation: ElementData::m_informations is read and written identically for every basetype (elementdata.cpp), and updateTree() already special-cased Terminal as enabled and injected PLC-specific info rows for PLC Slave elements - that logic was simply unreachable because the tab itself was hidden for both types. Also flipped updateTree()'s Slave case from setDisabled to setEnabled so the tree is actually editable once visible, matching Terminal's existing behavior. This lets users attach manufacturer/part-number/reference metadata directly to Terminal Block and Slave (e.g. multi-part contactor) elements, as requested in the issue - useful when a Slave's part number differs from its Master's (e.g. a contactor's auxiliary contact block vs. its coil). Not verified: interactive element-editor GUI testing wasn't performed in this sandbox; verified via clean incremental build only.