+ proper handling of group separator in InputField and QuantitySpinBox

This commit is contained in:
wmayer
2014-07-21 15:03:45 +02:00
parent 7b53b556fa
commit dbddf8bbda
4 changed files with 19 additions and 5 deletions

View File

@@ -350,12 +350,14 @@ Application::Application(bool GUIenabled)
throw Base::Exception("Invalid system settings");
}
#endif
#if 0 // QuantitySpinBox and InputField try to handle the group separator now
// http://forum.freecadweb.org/viewtopic.php?f=10&t=6910
// A workaround is to disable the group separator for double-to-string conversion, i.e.
// setting the flag 'OmitGroupSeparator'.
QLocale loc = QLocale::system();
loc.setNumberOptions(QLocale::OmitGroupSeparator);
QLocale::setDefault(loc);
#endif
// setting up Python binding
Base::PyGILStateLocker lock;