port of EQL/Qt4 to Qt5

This commit is contained in:
polos 2016-11-25 23:30:38 +01:00
commit 0591f54ce8
339 changed files with 99935 additions and 0 deletions

32
Qt_EQL/cpp/lib.cpp Normal file
View file

@ -0,0 +1,32 @@
#include "lib.h"
QT_BEGIN_NAMESPACE
QObject* ini()
{
// any QObject inherited class will do (e.g. main window of a C++ application)
static QObject* cpp = 0;
if(!cpp) {
cpp = new CPP;
cpp->setObjectName("Qt_EQL_dynamic");
}
return cpp;
}
// insert here your function implementations
QVariantList CPP::hello(const QVariantList& list)
{
QString msg;
QDebug debug(&msg);
debug << list;
QMessageBox::information(0, "QVariantList", msg);
QVariantList ret(list);
if(!ret.isEmpty()) {
ret[0] = "hello from Lisp";
}
return ret;
}
QT_END_NAMESPACE