return the quantity in C locale, i.e. decimal separator is a dot.
| 519 | |
| 520 | /// return the quantity in C locale, i.e. decimal separator is a dot. |
| 521 | QString InputField::rawText() const |
| 522 | { |
| 523 | double factor; |
| 524 | std::string unit; |
| 525 | double value = actQuantity.getValue(); |
| 526 | actQuantity.getUserString(factor, unit); |
| 527 | return QStringLiteral("%1 %2").arg(value / factor).arg(QString::fromStdString(unit)); |
| 528 | } |
| 529 | |
| 530 | /// expects the string in C locale and internally converts it into the OS-specific locale |
| 531 | void InputField::setRawText(const QString& text) |
nothing calls this directly
no test coverage detected