[skip ci] use QLocale class consistently to make it possible to change it application-wide
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user