[Sketcher] Add missing 'Auto remove redundant' to preferences

This commit is contained in:
0penBrain
2020-04-08 12:39:51 +02:00
committed by abdullahtahiriyo
parent 51fda743b0
commit c6fdc526dd
2 changed files with 21 additions and 0 deletions

View File

@@ -72,6 +72,7 @@ void SketcherSettings::saveSettings()
ui->checkBoxRecalculateInitialSolutionWhileDragging->onSave();
ui->checkBoxEnableEscape->onSave();
ui->checkBoxNotifyConstraintSubstitutions->onSave();
ui->checkBoxAutoRemoveRedundants->onSave();
form->saveSettings();
}
@@ -82,6 +83,7 @@ void SketcherSettings::loadSettings()
ui->checkBoxRecalculateInitialSolutionWhileDragging->onRestore();
ui->checkBoxEnableEscape->onRestore();
ui->checkBoxNotifyConstraintSubstitutions->onRestore();
ui->checkBoxAutoRemoveRedundants->onRestore();
form->loadSettings();
}

View File

@@ -109,6 +109,25 @@ Requires to re-enter edit mode to take effect.</string>
<string>General</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout_22">
<item>
<widget class="Gui::PrefCheckBox" name="checkBoxAutoRemoveRedundants">
<property name="toolTip">
<string>New constraints that would be redundant will automatically be removed</string>
</property>
<property name="text">
<string>Auto remove redundants</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>AutoRemoveRedundants</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Sketcher</cstring>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="checkBoxEnableEscape">
<property name="toolTip">