mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-03 18:44:13 +02:00
Merge pull request #588 from Kellermorph/Fix-PLC-Manager
Fix-PLC-Manager
This commit is contained in:
@@ -240,7 +240,12 @@ void DynamicTextFieldEditor::fillInfoComboBox()
|
||||
QETInformation::ELMT_PLC_ADDRESS,
|
||||
QETInformation::ELMT_PLC_FUNCTION,
|
||||
QETInformation::ELMT_PLC_COMMENT,
|
||||
QETInformation::ELMT_PLC_CROSSREF
|
||||
QETInformation::ELMT_PLC_CROSSREF,
|
||||
QETInformation::ELMT_PLC_TC,
|
||||
QETInformation::ELMT_PLC_T1,
|
||||
QETInformation::ELMT_PLC_T2,
|
||||
QETInformation::ELMT_PLC_T3,
|
||||
QETInformation::ELMT_PLC_T4
|
||||
};
|
||||
strl = plc_keys + strl;
|
||||
} else {
|
||||
@@ -249,6 +254,11 @@ void DynamicTextFieldEditor::fillInfoComboBox()
|
||||
strl.removeAll(QETInformation::ELMT_PLC_FUNCTION);
|
||||
strl.removeAll(QETInformation::ELMT_PLC_COMMENT);
|
||||
strl.removeAll(QETInformation::ELMT_PLC_CROSSREF);
|
||||
strl.removeAll(QETInformation::ELMT_PLC_TC);
|
||||
strl.removeAll(QETInformation::ELMT_PLC_T1);
|
||||
strl.removeAll(QETInformation::ELMT_PLC_T2);
|
||||
strl.removeAll(QETInformation::ELMT_PLC_T3);
|
||||
strl.removeAll(QETInformation::ELMT_PLC_T4);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -683,7 +683,7 @@ void ElementPropertiesEditorWidget::createPlcConfigWidgets()
|
||||
m_plc_table->horizontalHeader()->resizeSection(2, 150);
|
||||
m_plc_table->horizontalHeader()->resizeSection(3, 150);
|
||||
m_plc_table->horizontalHeader()->resizeSection(4, 100);
|
||||
m_plc_table->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
m_plc_table->setSelectionBehavior(QAbstractItemView::SelectItems);
|
||||
m_plc_table->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
m_plc_table->setMinimumHeight(200);
|
||||
tables_splitter->addWidget(m_plc_table);
|
||||
@@ -697,7 +697,7 @@ void ElementPropertiesEditorWidget::createPlcConfigWidgets()
|
||||
m_plc_terminal_table->horizontalHeader()->setSectionResizeMode(QHeaderView::Interactive);
|
||||
m_plc_terminal_table->horizontalHeader()->resizeSection(0, 50);
|
||||
m_plc_terminal_table->horizontalHeader()->resizeSection(1, 80);
|
||||
m_plc_terminal_table->setSelectionBehavior(QAbstractItemView::SelectRows);
|
||||
m_plc_terminal_table->setSelectionBehavior(QAbstractItemView::SelectItems);
|
||||
m_plc_terminal_table->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
m_plc_terminal_table->setMinimumHeight(200);
|
||||
tables_splitter->addWidget(m_plc_terminal_table);
|
||||
@@ -780,7 +780,7 @@ void ElementPropertiesEditorWidget::createPlcConfigWidgets()
|
||||
|
||||
auto *sb = new QSpinBox(m_plc_gb);
|
||||
sb->setMinimum(10);
|
||||
sb->setMaximum(200);
|
||||
sb->setMaximum(500);
|
||||
sb->setValue(40);
|
||||
sb->setSuffix(tr(" mm"));
|
||||
m_plc_col_width_spinboxes.append(sb);
|
||||
|
||||
Reference in New Issue
Block a user