TechDraw: Add spacing preview without OCCT calls
This commit is contained in:
committed by
Chris Hennes
parent
4a52ab9f05
commit
f338a779e0
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user