TechDraw: Add spacing preview without OCCT calls

This commit is contained in:
Ryan Kembrey
2025-06-10 20:03:47 +10:00
committed by Chris Hennes
parent 4a52ab9f05
commit f338a779e0

View File

@@ -575,11 +575,14 @@ void TaskProjGroup::spacingChanged()
if (blockUpdate || !multiView) {
return;
}
multiView->spacingX.setValue(ui->sbXSpacing->value().getValue());
multiView->spacingY.setValue(ui->sbYSpacing->value().getValue());
multiView->recomputeFeature();
multiView->autoPositionChildren();
}
void TaskProjGroup::updateTask()
{
// Update the scale type
@@ -847,6 +850,10 @@ bool TaskProjGroup::reject()
if (Gui::Command::hasPendingCommand()) {
Gui::Command::abortCommand();
}
// Restore views to initial spacing
if (multiView) {
multiView->autoPositionChildren();
}
}
Gui::Command::runCommand(Gui::Command::Gui, "Gui.ActiveDocument.resetEdit()");
return false;