mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 10:18:50 +00:00
* 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:
parent
5a5db4e5de
commit
ad0f2a7dff
@ -112,6 +112,7 @@ void lengthToWidgets(QLineEdit * input, LengthCombo * combo,
|
|||||||
{
|
{
|
||||||
combo->setCurrentItem(len.unit());
|
combo->setCurrentItem(len.unit());
|
||||||
QLocale loc;
|
QLocale loc;
|
||||||
|
loc.setNumberOptions(QLocale::OmitGroupSeparator);
|
||||||
input->setText(loc.toString(Length(len).value()));
|
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)
|
void doubleToWidget(QLineEdit * input, double const & value, char f, int prec)
|
||||||
{
|
{
|
||||||
QLocale loc;
|
QLocale loc;
|
||||||
|
loc.setNumberOptions(QLocale::OmitGroupSeparator);
|
||||||
input->setText(loc.toString(value, f, prec));
|
input->setText(loc.toString(value, f, prec));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user