The rounding fix looks good.
As for the localization issue, I'd rather fix it by reusing a widget that supports it, instead of adding specific code here. UI::Widget::Scalar and UI::Widget::ScalarUnit may be good candidates (usage example in ui/dialog/transformation.cpp).
The rounding fix looks good.
As for the localization issue, I'd rather fix it by reusing a widget that supports it, instead of adding specific code here. UI::Widget::Scalar and UI::Widget: :ScalarUnit may be good candidates (usage example in ui/dialog/ transformation. cpp).