+ replace degree symbol with 'deg' to make sure it works on all systems, force to use right codec to display floating numbers

This commit is contained in:
wmayer
2014-05-19 20:56:23 +02:00
parent 94a1fe9eb1
commit ae5ca4e5a3
2 changed files with 20 additions and 19 deletions

View File

@@ -261,9 +261,10 @@ DlgPrimitives::DlgPrimitives(QWidget* parent)
ui.edgeZ2->setMinimum(INT_MIN);
// RegularPolygon
QList<QDoubleSpinBox*> list = this->findChildren<QDoubleSpinBox*>();
for (QList<QDoubleSpinBox*>::iterator it = list.begin(); it != list.end(); ++it)
(*it)->setDecimals(Base::UnitsApi::getDecimals());
QList<Gui::InputField*> list = this->findChildren<Gui::InputField*>();
for (QList<Gui::InputField*>::iterator it = list.begin(); it != list.end(); ++it) {
(*it)->setValue((*it)->getQuantity());
}
}
/*