[TD]properly initialize Unit Widgets in Prefs
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -74,6 +74,8 @@ void DlgPrefsTechDraw2Imp::saveSettings()
|
||||
|
||||
void DlgPrefsTechDraw2Imp::loadSettings()
|
||||
{
|
||||
double markDefault = 3.0;
|
||||
pdsbTemplateMark->setValue(markDefault);
|
||||
|
||||
pdsbToleranceScale->onRestore();
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user