Switching the UnitsApi to the new Quantity system
This commit is contained in:
@@ -112,7 +112,7 @@ void TaskSketcherGeneral::toggleGridView(bool on)
|
||||
|
||||
void TaskSketcherGeneral::setGridSize(const QString& val)
|
||||
{
|
||||
float gridSize = (float) Base::UnitsApi::translateUnit(val);
|
||||
float gridSize = (float) Base::Quantity::parse(val.toAscii()).getValue();
|
||||
if (gridSize > 0)
|
||||
sketchView->GridSize.setValue(gridSize);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user