TODO: decide whether we want to have i18n here in the backend part of the code
| 71 | |
| 72 | // TODO: decide whether we want to have i18n here in the backend part of the code |
| 73 | void 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 |
nothing calls this directly
no test coverage detected