mirror of
https://gitlab.com/eql/lqml.git
synced 2026-01-26 06:20:39 -08:00
example 'meshtastic', add iOS version, background ini, startup animation
This commit is contained in:
parent
1f72af5440
commit
0446628830
25 changed files with 181 additions and 111 deletions
|
|
@ -26,7 +26,7 @@
|
|||
#define ADD_MACOS_BUNDLE_IMPORT_PATH
|
||||
#endif
|
||||
|
||||
#ifdef INI_LISP
|
||||
#if (defined INI_LISP) || (defined BACKGROUND_INI_LISP)
|
||||
extern "C" void ini_app(cl_object);
|
||||
#endif
|
||||
|
||||
|
|
@ -54,6 +54,13 @@ int catch_all_qexec() {
|
|||
return ret;
|
||||
}
|
||||
|
||||
cl_object do_ini_app() {
|
||||
#ifdef BACKGROUND_INI_LISP
|
||||
ecl_init_module(NULL, ini_app);
|
||||
#endif
|
||||
return Cnil;
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
#if QT_VERSION < 0x060000
|
||||
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
|
||||
|
|
@ -93,6 +100,10 @@ int main(int argc, char* argv[]) {
|
|||
exit(0);
|
||||
}
|
||||
|
||||
cl_object l_qml(STRING("QML"));
|
||||
si_select_package(l_qml);
|
||||
DEFUN ("do-ini-app", do_ini_app, 0)
|
||||
|
||||
QTranslator translator;
|
||||
if ((QFile::exists("i18n") && translator.load(QLocale(), QString(), QString(), "i18n"))
|
||||
|| translator.load(QLocale(), QString(), QString(), ":/i18n")) {
|
||||
|
|
@ -165,6 +176,10 @@ int main(int argc, char* argv[]) {
|
|||
ecl_init_module(NULL, ini_app);
|
||||
#endif
|
||||
|
||||
#ifdef BACKGROUND_INI_LISP
|
||||
LQML::eval("(qml::background-ini)", true); // see 'ini.liso'
|
||||
#endif
|
||||
|
||||
#ifdef NO_QT_RESTART
|
||||
bool qtRestart = false;
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue