PartDesign: Add transparent previews

This commit is contained in:
Kacper Donat
2024-10-13 13:33:18 +02:00
parent 2b5a95f3d0
commit c4b741f488
58 changed files with 1438 additions and 1021 deletions

View File

@@ -134,7 +134,7 @@ void TaskFilletParameters::onCheckBoxUseAllEdgesToggled(bool checked)
void TaskFilletParameters::setButtons(const selectionModes mode)
{
ui->buttonRefSel->setChecked(mode == refSel);
ui->buttonRefSel->setText(mode == refSel ? btnPreviewStr() : btnSelectStr());
ui->buttonRefSel->setText(mode == refSel ? stopSelectionLabel() : startSelectionLabel());
}
void TaskFilletParameters::onRefDeleted()
@@ -216,7 +216,7 @@ bool TaskDlgFilletParameters::accept()
{
auto obj = getObject();
if (!obj->isError()) {
parameter->showObject();
getViewObject()->showPreviousFeature(false);
}
parameter->apply();