initialize function list (sync with functions.h and FunctionsWidget.cpp!)
| 55 | |
| 56 | // initialize function list (sync with functions.h and FunctionsWidget.cpp!) |
| 57 | void ExpressionParser::initFunctions() { |
| 58 | for (int i = 0; i < _number_functions; i++) { |
| 59 | const auto& function = _functions[i]; |
| 60 | m_functionsDescription << function.description(); |
| 61 | m_functions << QLatin1String(function.name); |
| 62 | m_functionsGroupIndex << function.group; |
| 63 | } |
| 64 | for (int i = 0; i < _number_specialfunctions; i++) { |
| 65 | const auto& function = _special_functions[i]; |
| 66 | m_functionsDescription << function.description(); |
| 67 | m_functions << QLatin1String(function.name); |
| 68 | m_functionsGroupIndex << function.group; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | // TODO: decide whether we want to have i18n here in the backend part of the code |
| 73 | void ExpressionParser::initConstants() { |
nothing calls this directly
no test coverage detected