| 125 | } |
| 126 | |
| 127 | QString |
| 128 | EditExpressionDialog::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 | |
| 144 | QString |
| 145 | EditExpressionDialog::getCustomHelp() |
nothing calls this directly
no test coverage detected