So it doesn't appear in the LLR and the C++ codegen can be simplified.
In particular, this removes the need to throw/catch exception to handle return
across generated lambdas
Many of our dependencies already made the jump and require a cargo update hack, so make it official
Removed the MSRV from the README since it applies to master branch and people read the readme also for
the released version. There is enough documentation of the MSRV in other locations.
In forks of the slint repo, those secrets are not presented. The cron schedule however
implies that the job will be run, and
in every for of the Slint repo the nightly
always fails and produces an email.
Stop that :-)
We add the Cargo.lock for the release so that the tagged commit has it,
this will be usefull for the C++ users who build from source with a
tagged version of slint. Because we want to reduce the likelyhood that
they get compilation error in a dependent crate
This will be reverted after the release.
- Remove the alpha suffix
- Use Slint from the release tag not the branch.
It would be awkward if the 1.2.0 esp-idf component would end up
using Slint 1.3.0, so let's tie them together for now.
When not explicitly selected, we would construct the Backend struct as-is,
without calling `new()`. Therefore we would
miss the call to ensure_initialized() and
later set the Qt::AA_PluginApplication
application attribute, which screws up rendering.
- the "preview" command don't contain a "design_mode" arg, but later
the generated js for the wasm checked that it is a boolean.
- The url comparison did not work when using the binary lsp and wasm
preview. Event though the URL string is the same, the object were not
exactly equals.
- Fix rust warnings in the wasm lsp build
The interpreter will return 0 offsets for lines and columns and empty file
paths when something goes wrong.
So the LSP needs to be prepared to handle those to avoid a panic.
This patch uses saturating sub to avoid panics and moves the offset
handling for both lines and columns into the same place.
This makes sure paths match up with each other. Highlighting broke for
me since the paths in the DocumentCache were canonicalized while the path
the LSP wanted the preview to highlight was not.
- Use a single code fence for the entire signature. Some where uses the one, some the other format. This unifies to the single fence that's easy to read and avoids extra visual boxes.
- Removed names from arguments as that's not valid syntax at the moment.
- Add missing documentation to various new functions
- Remove unused `inner_model()` function. We don't have an equivalent in the other model classes. C++ has source_model() though, but we can add that if needed.
- Make BorrowedOpenGLTextureOrigin non_exhaustive
- Mark BorrowedOpenGLTextureBuilder::new_gl_2d_rgba_texture as unsafe instead of build(). The former takes the arguments that may be garbage, not the latter.
- s/physical_size/size/ (consistant with the slint::Window API)
- remove const of virtual function (they don't need to be const and
make implementation potentially easier)
- Move the WindowProperties in it