mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-16 23:30:48 -08:00
revision of "quick" examples
This commit is contained in:
parent
b221fb1014
commit
27289c1166
12 changed files with 41 additions and 36 deletions
|
|
@ -24,11 +24,10 @@ static QVariant qmlApply(QObject* caller, const QString& function, const QVarian
|
|||
Q_ARG(QObject*, caller),
|
||||
Q_ARG(QString, function),
|
||||
Q_ARG(QVariantList, arguments));
|
||||
if(var.type() == QVariant::String) {
|
||||
QString str(var.toString());
|
||||
if(str.startsWith("#<>")) { // prepared in Lisp for JS eval
|
||||
QQmlExpression exp(rootContext(), caller, str.mid(3));
|
||||
return exp.evaluate(); }}
|
||||
QString str(var.toString());
|
||||
if(str.startsWith("#<>")) { // prepared in Lisp for JS eval
|
||||
QQmlExpression exp(rootContext(), caller, str.mid(3));
|
||||
return exp.evaluate(); }
|
||||
return var; }
|
||||
|
||||
QVariant Lisp::call(const QJSValue& caller_or_function, const QJSValue& function_or_arg0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue