mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-14 06:10:29 -08:00
"quick": rename "Lisp.fun()" to "Lisp.call()"; allow optionally passing JS "this" (a QQuickItem) as first argument;
This commit is contained in:
parent
9e09c38766
commit
2aee9968c6
14 changed files with 117 additions and 44 deletions
|
|
@ -13,9 +13,10 @@ QObject* ini() {
|
|||
qmlRegisterSingletonType<Lisp>("EQL5", 1, 0, "EQL5", lisp_provider); }
|
||||
return lisp; }
|
||||
|
||||
QVariant Lisp::apply(const QString& function, const QVariantList& arguments) {
|
||||
QVariant Lisp::apply(QObject* caller, const QString& function, const QVariantList& arguments) {
|
||||
QVariant ret =
|
||||
eql_fun("qml:qml-apply", QVariant::String,
|
||||
Q_ARG(QObject*, caller),
|
||||
Q_ARG(QString, function),
|
||||
Q_ARG(QVariantList, arguments));
|
||||
return ret; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue