mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Use correct numeric format based on selected locale (Qt domain part)
This changes the numeric format of many values printed to the UI to reflect the correct numeric format of the selected locale: - dot or comma as decimal separator - comma or dot as thousands separator In the Qt domain the `L` flag is used case specific mostly in qthelper.cpp. Then the helper functions get_xxx_string() are used more consistently. Signed-off-by: Stefan Fuchs <sfuchs@gmx.de>
This commit is contained in:
parent
18c034ea37
commit
aacc688670
6 changed files with 29 additions and 38 deletions
|
|
@ -20,6 +20,7 @@ QString get_weight_unit();
|
|||
QString get_temperature_string(temperature_t temp, bool showunit = false);
|
||||
QString get_temp_unit();
|
||||
QString get_volume_string(volume_t volume, bool showunit = false);
|
||||
QString get_volume_string(int mliter, bool showunit = false);
|
||||
QString get_volume_unit();
|
||||
QString get_pressure_string(pressure_t pressure, bool showunit = false);
|
||||
QString get_pressure_unit();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue