MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / rawText

Method rawText

src/Gui/InputField.cpp:521–528  ·  view source on GitHub ↗

return the quantity in C locale, i.e. decimal separator is a dot.

Source from the content-addressed store, hash-verified

519
520/// return the quantity in C locale, i.e. decimal separator is a dot.
521QString 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
531void InputField::setRawText(const QString& text)

Callers

nothing calls this directly

Calls 2

getValueMethod · 0.45
getUserStringMethod · 0.45

Tested by

no test coverage detected