add readme/screenshot for 'QML Live Preview and Slime'; revisions

This commit is contained in:
pls.153 2022-02-25 15:09:02 +01:00
parent d7a999acdb
commit be2b4520d1
17 changed files with 107 additions and 32 deletions

View file

@ -77,7 +77,14 @@ int main(int argc, char* argv[]) {
arguments.removeAll("-norc");
}
else {
LQML::eval("(x:when-it (probe-file \"~/.eclrc\") (load x:it))");
#if (defined Q_OS_ANDROID) || (defined Q_OS_IOS)
// mobile: don't hang on startup
LQML::eval("(x:when-it (probe-file \"~/.eclrc\")"
" (ignore-errors (load x:it)))");
#else
LQML::eval("(x:when-it (probe-file \"~/.eclrc\")"
" (load x:it))");
#endif
}
#ifdef INI_LISP
@ -99,6 +106,10 @@ int main(int argc, char* argv[]) {
}
}
#ifdef SWANK
slime = true;
#endif
if (slime) {
// fallback restart for conditions while processing the Qt event loop
LQML::eval("(loop (with-simple-restart (restart-qt-events \"Restart Qt event processing.\")"