MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / compileExpression

Method compileExpression

Gui/EditExpressionDialog.cpp:127–142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125}
126
127QString
128EditExpressionDialog::compileExpression(const QString& expr)
129{
130 std::string exprResult;
131
132 try {
133 _knob->getKnob()->validateExpression(expr.toStdString(), _dimension == -1 ? 0 : _dimension, isUseRetButtonChecked()
134 , &exprResult);
135 } catch (const std::exception& e) {
136 QString err = QString( tr("ERROR") + QLatin1String(": %1") ).arg( QString::fromUtf8( e.what() ) );
137
138 return err;
139 }
140
141 return QString::fromUtf8( exprResult.c_str() );
142}
143
144QString
145EditExpressionDialog::getCustomHelp()

Callers

nothing calls this directly

Calls 4

validateExpressionMethod · 0.80
toStdStringMethod · 0.80
QStringClass · 0.50
getKnobMethod · 0.45

Tested by

no test coverage detected