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

Method getUserString

src/Gui/QuantitySpinBox.cpp:874–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

872}
873
874QString QuantitySpinBox::getUserString(const Base::Quantity& val, double& factor, QString& unitString) const
875{
876 Q_D(const QuantitySpinBox);
877 std::string unitStr;
878 const std::string str = d->scheme ? val.getUserString(d->scheme.get(), factor, unitStr)
879 : val.getUserString(factor, unitStr);
880 unitString = QString::fromStdString(unitStr);
881 return QString::fromStdString(str);
882}
883
884QString QuantitySpinBox::getUserString(const Base::Quantity& val) const
885{

Callers 15

isNormalizedMethod · 0.45
updateTextMethod · 0.45
newInputMethod · 0.45
getQuantityStringMethod · 0.45
rawTextMethod · 0.45
getUnitTextMethod · 0.45
focusOutEventMethod · 0.45
keyPressEventMethod · 0.45
wheelEventMethod · 0.45
validateMethod · 0.45
stopEditMethod · 0.45
setSpinboxValueMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected