fix example 'swank-server' to work again on mobile; revisions

This commit is contained in:
pls.153 2022-03-09 14:44:49 +01:00
parent fc662c4f48
commit 5f3b251a69
9 changed files with 59 additions and 44 deletions

View file

@ -4,6 +4,7 @@
#include <QCoreApplication>
#include <QTimer>
#include <QStringList>
#include <QQuickView>
#include <QDebug>
const char LQML::version[] = "22.3.3"; // Mar 2022
@ -49,6 +50,8 @@ LQML::LQML(int argc, char* argv[], QQuickView* view) : QObject() {
eval("(in-package :qml-user)");
eval(QString("(setf qml:*quick-view* (qml:qt-object %1))")
.arg(reinterpret_cast<quintptr>(view)));
eval(QString("(setf qml:*engine* (qml:qt-object %1))")
.arg(reinterpret_cast<quintptr>(view->engine())));
}
LQML::~LQML() {