mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-08-22 08:34:12 +02:00
Merge pull request #741 from Kellermorph/update-terminal-numbering
Extend terminal numbering dialog with letter numbering and strip selection
This commit is contained in:
@@ -2795,11 +2795,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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user