[skip ci] use QLocale class consistently to make it possible to change it application-wide

This commit is contained in:
wmayer
2020-03-26 16:37:45 +01:00
parent caee1eb48d
commit ec8b1bc072
16 changed files with 97 additions and 91 deletions

View File

@@ -38,7 +38,7 @@ using namespace Base;
QString UnitsSchema::toLocale(const Base::Quantity& quant, double factor, const QString& unitString) const
{
//return QString::fromUtf8("%L1 %2").arg(quant.getValue() / factor).arg(unitString);
QLocale Lc = QLocale::system();
QLocale Lc;
const QuantityFormat& format = quant.getFormat();
if (format.option != QuantityFormat::None) {
uint opt = static_cast<uint>(format.option);