mirror of
https://github.com/leozide/leocad
synced 2025-01-28 19:58:12 +01:00
Reduced number of digits after decimal separator to 4.
This commit is contained in:
parent
b2c739dc5a
commit
c02e19a2eb
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ QString lcFormatValueLocalized(float Value)
|
|||
QLocale Locale = QLocale::system();
|
||||
Locale.setNumberOptions(QLocale::OmitGroupSeparator);
|
||||
QChar DecimalPoint = Locale.decimalPoint();
|
||||
QString String = Locale.toString(Value, 'f', 6);
|
||||
QString String = Locale.toString(Value, 'f', 4);
|
||||
|
||||
if (String.indexOf(DecimalPoint) != -1)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue