[TD]move format spec to dimension tab
- also make %.2w default format
This commit is contained in:
committed by
WandererFan
parent
0149b99b6f
commit
58d1ef260b
@@ -29,6 +29,7 @@
|
||||
|
||||
#include <Base/Parameter.h>
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Tools.h>
|
||||
|
||||
#include "DrawGuiUtil.h"
|
||||
#include "PreferencesGui.h"
|
||||
@@ -67,6 +68,7 @@ void DlgPrefsTechDrawDimensionsImp::saveSettings()
|
||||
ui->leDiameter->onSave();
|
||||
ui->pcbArrow->onSave();
|
||||
ui->plsb_ArrowSize->onSave();
|
||||
ui->leFormatSpec->onSave();
|
||||
}
|
||||
|
||||
void DlgPrefsTechDrawDimensionsImp::loadSettings()
|
||||
@@ -92,6 +94,9 @@ void DlgPrefsTechDrawDimensionsImp::loadSettings()
|
||||
|
||||
DrawGuiUtil::loadArrowBox(ui->pcbArrow);
|
||||
ui->pcbArrow->setCurrentIndex(prefArrowStyle());
|
||||
|
||||
ui->leFormatSpec->setText(Base::Tools::fromStdString(Preferences::formatSpec()));
|
||||
ui->leFormatSpec->onRestore();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user