[TD]remove obsolete preference

This commit is contained in:
wandererfan
2025-11-27 16:55:26 -05:00
committed by Yorik van Havre
parent d5e35bbe4b
commit 7942247143
3 changed files with 5 additions and 32 deletions

View File

@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>676</width>
<height>1200</height>
<height>1302</height>
</rect>
</property>
<property name="sizePolicy">
@@ -845,27 +845,6 @@ for ProjectionGroups</string>
</property>
</widget>
</item>
<item>
<widget class="Gui::PrefCheckBox" name="cb_alwaysShowLabel">
<property name="font">
<font>
<italic>true</italic>
</font>
</property>
<property name="toolTip">
<string>Displays view labels even when frames are suppressed</string>
</property>
<property name="text">
<string>Always Show Label</string>
</property>
<property name="prefEntry" stdset="0">
<cstring>AlwaysShowLabel</cstring>
</property>
<property name="prefPath" stdset="0">
<cstring>/Mod/TechDraw/General</cstring>
</property>
</widget>
</item>
</layout>
</item>
<item row="0" column="1">

View File

@@ -82,7 +82,6 @@ void DlgPrefsTechDrawGeneralImp::saveSettings()
ui->cb_viewFramesVisibility->onSave();
ui->cb_useCameraDirection->onSave();
ui->cb_alwaysShowLabel->onSave();
ui->cb_SnapViews->onSave();
ui->psb_SnapFactor->onSave();
ui->cb_SnapHighlights->onSave();
@@ -131,7 +130,6 @@ void DlgPrefsTechDrawGeneralImp::loadSettings()
ui->cb_viewFramesVisibility->onRestore();
ui->cb_useCameraDirection->onRestore();
ui->cb_alwaysShowLabel->onRestore();
ui->cb_SnapViews->onRestore();
ui->psb_SnapFactor->onRestore();

View File

@@ -65,6 +65,7 @@ ViewProviderDrawingView::ViewProviderDrawingView() :
static const char *group = "Base";
auto showLabel = Preferences::alwaysShowLabel();
// TODO: KeepLabel is not used. Make it ReadOnly or Hidden?
ADD_PROPERTY_TYPE(KeepLabel ,(showLabel), group, App::Prop_None, "Keep Label on Page even if toggled off");
ADD_PROPERTY_TYPE(StackOrder,(0),group,App::Prop_None,"Over or under lap relative to other views");
@@ -111,14 +112,9 @@ void ViewProviderDrawingView::onChanged(const App::Property *prop)
return;
}
if (prop == &Visibility) {
//handled by ViewProviderDocumentObject
} else if (prop == &KeepLabel) {
QGIView* qgiv = getQView();
if (qgiv) {
qgiv->updateView(true);
}
}
// if (prop == &Visibility) {
// //handled by ViewProviderDocumentObject
// }
if (prop == &StackOrder) {
QGIView* qgiv = getQView();