Sketcher: Remove 'Edit controls' widget 'Grid Size' LABEL.

This commit is contained in:
Paddle
2022-10-08 14:24:43 +02:00
committed by Chris Hennes
parent 5bb041deaa
commit 2da9caece2
2 changed files with 17 additions and 25 deletions

View File

@@ -166,7 +166,6 @@ void SketcherGeneralWidget::checkAvoidRedundant(bool on)
void SketcherGeneralWidget::enableGridSettings(bool on)
{
ui->label->setEnabled(on);
ui->gridSize->setEnabled(on);
ui->checkBoxGridSnap->setEnabled(on);
}

View File

@@ -14,34 +14,27 @@
<string>Form</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="Gui::PrefCheckBox" name="checkBoxShowGrid">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>A grid will be shown</string>
</property>
<property name="text">
<string>Show grid</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>ShowGrid</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Sketcher/General</cstring>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout">
<item>
<widget class="QLabel" name="label">
<widget class="Gui::PrefCheckBox" name="checkBoxShowGrid">
<property name="enabled">
<bool>true</bool>
</property>
<property name="toolTip">
<string>A grid will be shown</string>
</property>
<property name="text">
<string>Grid size:</string>
<string>Show grid</string>
</property>
<property name="checked">
<bool>false</bool>
</property>
<property name="prefEntry" stdset="0">
<cstring>ShowGrid</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>Mod/Sketcher/General</cstring>
</property>
</widget>
</item>