Show all element information fields for terminals

Terminal elements only offered eight information fields in the
diagram editor (formula, label, comment, designation, manufacturer,
manufacturer reference, machine manufacturer reference, supplier).
That subset was chosen in faf4235be, before the size, quantity and
auxiliary fields existed, so a terminal could not be given a width,
height, depth or type.
This commit is contained in:
Levi Jetzer
2026-10-08 15:29:05 +02:00
parent 7c6a0411d4
commit f9bdc73c2f
3 changed files with 2 additions and 24 deletions
+2 -9
View File
@@ -285,12 +285,7 @@ void ElementInfoWidget::disableLiveEdit()
*/
void ElementInfoWidget::buildInterface()
{
QStringList keys;
if (m_element.data()->elementData().m_type == ElementData::Terminal) {
keys = QETInformation::terminalElementInfoKeys();
} else {
keys = QETInformation::elementInfoKeys();
}
QStringList keys = QETInformation::elementInfoKeys();
//"exclude_from_bom" is part of elementInfoKeys() because the project
//database builds the element_info table from that list, but it is not
@@ -354,9 +349,7 @@ void ElementInfoWidget::buildInterface()
*/
QStringList ElementInfoWidget::predefinedKeys() const
{
QStringList keys = (m_element.data()->elementData().m_type == ElementData::Terminal)
? QETInformation::terminalElementInfoKeys()
: QETInformation::elementInfoKeys();
QStringList keys = QETInformation::elementInfoKeys();
keys << QETInformation::ELMT_FORMULA_ID
<< QStringLiteral("auto_num_locked")