mirror of
https://gitlab.com/eql/EQL5.git
synced 2025-12-08 11:31:07 -08:00
fix and improve "qml-lisp" example; allow nested QVariantLists (JS arrays in QML);
This commit is contained in:
parent
0e82b0a517
commit
03c7a5ded5
5 changed files with 27 additions and 10 deletions
|
|
@ -26,13 +26,13 @@ public:
|
|||
|
||||
static Lisp* lisp = 0;
|
||||
|
||||
static QObject *lisp_provider(QQmlEngine*, QJSEngine*) { return lisp; }
|
||||
static QObject* lisp_provider(QQmlEngine*, QJSEngine*) { return lisp; }
|
||||
|
||||
extern "C" {
|
||||
LIB_EXPORT QObject* ini() {
|
||||
if(!lisp) {
|
||||
qmlRegisterSingletonType<Lisp>("EQL5", 1, 0, "Lisp", lisp_provider);
|
||||
lisp = new Lisp; }
|
||||
lisp = new Lisp;
|
||||
qmlRegisterSingletonType<Lisp>("EQL5", 1, 0, "Lisp", lisp_provider); }
|
||||
return lisp; }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue