[TD]properly initialize Unit Widgets in Prefs

This commit is contained in:
wandererfan
2020-03-21 13:40:26 -04:00
committed by WandererFan
parent b359b6551e
commit 396f858dfe
3 changed files with 15 additions and 0 deletions

View File

@@ -80,6 +80,9 @@ void DlgPrefsTechDraw1Imp::saveSettings()
void DlgPrefsTechDraw1Imp::loadSettings()
{
double labelDefault = 8.0;
plsb_LabelSize->setValue(labelDefault);
pfc_DefTemp->onRestore();
pfc_DefDir->onRestore();
pfc_HatchFile->onRestore();

View File

@@ -74,6 +74,8 @@ void DlgPrefsTechDraw2Imp::saveSettings()
void DlgPrefsTechDraw2Imp::loadSettings()
{
double markDefault = 3.0;
pdsbTemplateMark->setValue(markDefault);
pdsbToleranceScale->onRestore();

View File

@@ -81,6 +81,16 @@ void DlgPrefsTechDraw3Imp::saveSettings()
void DlgPrefsTechDraw3Imp::loadSettings()
{
//set defaults for Quantity widgets if property not found
//Quantity widgets do not use preset value since they are based on
//QAbstractSpinBox
double kinkDefault = 5.0;
pdsbBalloonKink->setValue(kinkDefault);
double arrowDefault = 5.0;
plsb_ArrowSize->setValue(arrowDefault);
double fontDefault = 4.0;
plsb_FontSize->setValue(fontDefault);
cbAutoHoriz->onRestore();
cbGlobalDecimals->onRestore();
cbHiddenLineStyle->onRestore();