User can edit the label of terminal inside the terminal strip editor

This commit is contained in:
joshua
2021-09-10 21:01:03 +02:00
parent 4dd2dc259f
commit b08c2bd90b
5 changed files with 34 additions and 3 deletions

View File

@@ -442,6 +442,7 @@ void TerminalStripEditor::on_m_dialog_button_box_clicked(QAbstractButton *button
current_data.setTerminalType(modified_data.type_);
current_data.setTerminalFunction(modified_data.function_);
current_data.setTerminalLED(modified_data.led_);
current_data.m_informations.addValue(QStringLiteral("label"), modified_data.label_);
m_project->undoStack()->push(new ChangeElementDataCommand(element, current_data));
}