Extend terminal numbering dialog with letter numbering and strip selection

This commit is contained in:
Kellermorph
2026-08-13 13:51:13 +02:00
parent 10cc162c4e
commit 458c9921c2
4 changed files with 211 additions and 63 deletions
+4 -4
View File
@@ -2799,11 +2799,11 @@ void QETDiagramEditor::generateTerminalBlock()
* Opens the dialog for automatic terminal numbering and applies the generated undo command.
*/
void QETDiagramEditor::slot_terminalNumbering() {
TerminalNumberingDialog dialog(this);
if (dialog.exec() == QDialog::Accepted) {
QETProject *project = currentProject();
if (!project) return;
QETProject *project = currentProject();
if (!project) return;
TerminalNumberingDialog dialog(this, project);
if (dialog.exec() == QDialog::Accepted) {
// Fetch the generated undo command from the dialog logic
QUndoCommand *macro = dialog.getUndoCommand(project);