mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-15 14:51:14 -08:00
some revisions
This commit is contained in:
parent
5f8e81dfb6
commit
9a76e0d31c
10 changed files with 17 additions and 19 deletions
|
|
@ -19,14 +19,13 @@ register with an email.
|
|||
|
||||
Make sure to select the following in the online installer (assuming Linux):
|
||||
|
||||
* [Qt5.15 Image Formats](doc/img/qt-image-formats.png)
|
||||
* [Qt5.15 Desktop, Android](doc/img/qt-desktop-android.png)
|
||||
|
||||
Even on Linux you really want the online installer. Yes it's a 1 GB download,
|
||||
but it brings all the examples, demos, tutorials, documentation, Qt Designer,
|
||||
all QML modules, so you won't miss anything. And you can easily add/remove
|
||||
parts later (see `~/Qt/MaintainanceTool` after installation), or install Qt6 in
|
||||
parallel in the future.
|
||||
parts later (see `~/Qt/MaintainanceTool` after installation), or install Qt6
|
||||
in the future (side by side).
|
||||
|
||||
|
||||
Cross-compile ECL
|
||||
|
|
|
|||
|
|
@ -31,14 +31,13 @@ register with an email.
|
|||
|
||||
Make sure to select the following in the online installer:
|
||||
|
||||
* [Qt5.15 Image Formats](doc/img/qt-image-formats.png)
|
||||
* [Qt5.15 macOS, iOS](doc/img/qt-macos-ios.png)
|
||||
|
||||
You really want the online installer. Yes it's a 1 GB download, but it brings
|
||||
all the examples, demos, tutorials, documentation, Qt Designer, all QML
|
||||
modules, so you won't miss anything. And you can easily add/remove parts later
|
||||
(see `~/Qt/MaintainanceTool` after installation), or install Qt6 in parallel in
|
||||
the future.
|
||||
(see `~/Qt/MaintainanceTool` after installation), or install Qt6 in the future
|
||||
(side by side).
|
||||
|
||||
|
||||
Cross-compile ECL
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ QT_BEGIN_NAMESPACE
|
|||
QObject* ini() {
|
||||
// any QObject inherited class will do
|
||||
static QObject* cpp = nullptr;
|
||||
if (!cpp) {
|
||||
if (cpp == nullptr) {
|
||||
cpp = new CPP;
|
||||
|
||||
// needed for QMessageBox
|
||||
|
|
|
|||
Binary file not shown.
|
Before Width: | Height: | Size: 60 KiB |
|
|
@ -9,7 +9,7 @@ or `qsTr("")` (QML files).
|
|||
force recompilation of all files); this will generate a dummy file `tr.h`,
|
||||
containing all Lisp strings to translate
|
||||
|
||||
* run Qt command `lupdate` (here: Spanish, Frensh) for creating the translation
|
||||
* run Qt command `lupdate` (here: Spanish, French) for creating the translation
|
||||
source files from both Lisp and QML strings:
|
||||
```
|
||||
lupdate ../app.pro -ts es.ts fr.ts
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ QT_BEGIN_NAMESPACE
|
|||
|
||||
QObject* ini() {
|
||||
static QObject* qt = nullptr;
|
||||
if (!qt) {
|
||||
if (qt == nullptr) {
|
||||
qt = new QT;
|
||||
#ifdef PLUGIN
|
||||
ini_lisp();
|
||||
|
|
@ -32,7 +32,7 @@ QObject* ini() {
|
|||
SyntaxHighlighter::SyntaxHighlighter(QTextDocument* doc)
|
||||
: QSyntaxHighlighter(doc) {}
|
||||
|
||||
void SyntaxHighlighter::highlightBlock(const QString& text) {
|
||||
void SyntaxHighlighter::highlightBlock(const QString& text) { // override
|
||||
ecl_fun("editor:highlight-block", VAR(SyntaxHighlighter*, this), text);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
|
||||
Howto
|
||||
HowTo
|
||||
-----
|
||||
|
||||
* to add a new app from the template, run:
|
||||
|
|
|
|||
|
|
@ -15,14 +15,14 @@
|
|||
(dotimes (c 4)
|
||||
(let* ((cd (mod (+ c d) 4))
|
||||
(dv (case cd
|
||||
(0 (list 0 1))
|
||||
(1 (list 1 0))
|
||||
(2 (list -1 0))
|
||||
(t (list 0 -1))))
|
||||
(0 '(0 . 1))
|
||||
(1 '(1 . 0))
|
||||
(2 '(-1 . 0))
|
||||
(t '(0 . -1))))
|
||||
(x1 (+ x (car dv)))
|
||||
(y1 (+ y (cadr dv)))
|
||||
(y1 (+ y (cdr dv)))
|
||||
(x2 (+ x1 (car dv)))
|
||||
(y2 (+ y1 (cadr dv))))
|
||||
(y2 (+ y1 (cdr dv))))
|
||||
(when (and (< 0 x2 *width*)
|
||||
(< 0 y2 *height*)
|
||||
(aref *maze* x1 y1)
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ static void clearEventualExceptions() {
|
|||
|
||||
QObject* ini() {
|
||||
static QObject* qt = nullptr;
|
||||
if (!qt) {
|
||||
if (qt == nullptr) {
|
||||
qt = new QT;
|
||||
}
|
||||
return qt;
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ works both on the desktop and on mobile.
|
|||
As a concrete example, you may have running your app on the desktop, and have
|
||||
both an android mobile device plus an iOS mobile device pointing to the IP of
|
||||
the desktop. Now you will see any change to QML on all 3 screens
|
||||
simultaneoulsy.
|
||||
simultaneously.
|
||||
|
||||
This even works (with some limitations, and only in this
|
||||
[advanced example](examples/advanced-qml-auto-reload/)) at QML file level,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue