MCPcopy Create free account
hub / github.com/KDE/labplot / initConstants

Method initConstants

src/backend/gsl/ExpressionParser.cpp:73–82  ·  view source on GitHub ↗

TODO: decide whether we want to have i18n here in the backend part of the code

Source from the content-addressed store, hash-verified

71
72// TODO: decide whether we want to have i18n here in the backend part of the code
73void ExpressionParser::initConstants() {
74 for (int i = 0; i < _number_constants; i++) {
75 const auto& constant = _constants[i];
76 m_constantsDescription << constant.description();
77 m_constants << QLatin1String(constant.name);
78 m_constantsValues << QString::number(constant.value, 'g', 15);
79 m_constantsUnits << QLatin1String(constant.unit);
80 m_constantsGroupIndex << constant.group;
81 }
82}
83
84/**********************************************************************************/
85

Callers

nothing calls this directly

Calls 1

descriptionMethod · 0.80

Tested by

no test coverage detected