* qt_helpers.cpp:

- omit group separators for numbers.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30922 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-08-08 11:48:04 +00:00
parent 5a5db4e5de
commit ad0f2a7dff

View File

@ -112,6 +112,7 @@ void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
{
combo->setCurrentItem(len.unit());
QLocale loc;
loc.setNumberOptions(QLocale::OmitGroupSeparator);
input->setText(loc.toString(Length(len).value()));
}
@ -163,6 +164,7 @@ string widgetToDoubleStr(QLineEdit const * input)
void doubleToWidget(QLineEdit * input, double const & value, char f, int prec)
{
QLocale loc;
loc.setNumberOptions(QLocale::OmitGroupSeparator);
input->setText(loc.toString(value, f, prec));
}