slint/internal/core
Olivier Goffart 84202f6af3 Fix ComponentContainer causing panic when using forward-focus
The ComponentContainer is usually instentiated when trying to evaluate a
property such as the geometry or moving the focus. But the init code of
the ComponentContainer would then tries to change the focus which will
indirectly re-visit items and recurse into some property which are being
evaluated.

We do not need to set the focus on instentiation of the
ComponentContainer anyway, intentiating it shouldn't change the current
focus.

This fixes the LSP preview crashing when trying to preview a component
that has forward-focus

Fixes: #3950
2023-11-22 14:13:27 +01:00
..
graphics Implement std::error::Error for LoadImageError 2023-11-20 11:43:13 +01:00
items Fix ComponentContainer causing panic when using forward-focus 2023-11-22 14:13:27 +01:00
LICENSES reuse: remove glob for markdown files 2023-08-17 08:55:28 +02:00
model Models: fix writing data doesn't update ListView model data property 2023-10-31 13:41:31 +01:00
properties Winit port: Fix wasm build 2023-10-23 14:22:48 +02:00
software_renderer swrenderer: Optimize image rendering 2023-11-18 13:21:11 +01:00
textlayout janitor: Go over our spell checking setup 2023-10-16 09:01:51 +02:00
accessibility.rs use #repr(uX) instead of repr(C) for fieldless enums 2023-08-31 10:22:03 +02:00
animations.rs Add more easing formulas (#3812) 2023-11-03 09:20:44 +01:00
api.rs Refactor: Merge KeyInputEvent and KeyEvent 2023-11-02 12:16:40 +01:00
callbacks.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
Cargo.toml Bump femtovg and associated ttf-parser, glow, and rustybuzz dependencies 2023-11-14 19:40:40 +08:00
component_factory.rs Change component factory API 2023-10-20 15:34:49 +02:00
future.rs Use portable_atomic instead of deprecated atomic_polyfill 2023-08-10 13:12:04 +02:00
graphics.rs Frame per second counter for the software renderer 2023-09-28 16:23:07 +02:00
input.rs Refactor: Merge KeyInputEvent and KeyEvent 2023-11-02 12:16:40 +01:00
item_focus.rs Rename ComponentVTable to ItemTreeVTable 2023-10-09 11:01:56 +02:00
item_rendering.rs Fix BorrowMut error showing the preview with the software renderer 2023-11-09 16:58:19 +01:00
item_tree.rs LSP: Fix highlighting of top-level item 2023-11-03 22:14:20 +01:00
items.rs Added focus-changed-event callback to FocusScope (#3650) 2023-10-17 17:30:19 +02:00
layout.rs Winit initial size adjustments and wasm size fixes 2023-10-24 15:28:18 +02:00
lengths.rs Add support for rendering the mouse cursor with linuxkms 2023-07-31 13:06:28 +02:00
lib.rs Rename ComponentVTable to ItemTreeVTable 2023-10-09 11:01:56 +02:00
model.rs Models: fix writing data doesn't update ListView model data property 2023-10-31 13:41:31 +01:00
platform.rs Initial implementation of a Slint event loop sitting on top of Node.js 2023-11-06 11:37:45 +01:00
properties.rs core: Make debug print of PropertyHandle more useful (#3780) 2023-10-30 09:18:45 +01:00
README.md reuse: remove glob for markdown files 2023-08-17 08:55:28 +02:00
renderer.rs janitor: Go over our spell checking setup 2023-10-16 09:01:51 +02:00
rtti.rs Implement TouchArea::scroll-event 2023-10-07 07:59:53 +02:00
sharedvector.rs Use portable_atomic instead of deprecated atomic_polyfill 2023-08-10 13:12:04 +02:00
slice.rs janitor: Fix clippy errors about wrong clone implementations 2023-09-20 20:23:38 +02:00
software_renderer.rs SW: stop breaking lines after reaching the max (elided) lines 2023-10-13 22:14:58 +02:00
string.rs C++: fix string conversion from float not being round 2023-10-27 13:20:24 +02:00
tests.rs Rename ComponentVTable to ItemTreeVTable 2023-10-09 11:01:56 +02:00
textlayout.rs SW: fix eliding of multiline text (#3612) 2023-10-18 10:15:55 +02:00
timers.rs use #repr(uX) instead of repr(C) for fieldless enums 2023-08-31 10:22:03 +02:00
translations.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
unsafe_single_threaded.rs Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
window.rs Fix ComponentContainer causing panic when using forward-focus 2023-11-22 14:13:27 +01:00

Slint Runtime Library

NOTE: This library is an internal crate of the Slint project. This crate should not be used directly by applications using Slint. You should use the slint crate instead.

WARNING: This crate does not follow the semver convention for versioning and can only be used with version = "=x.y.z" in Cargo.toml.