slint/internal/compiler/tests/syntax
Simon Hausmann 6fefe75a1c Don't require components that use forward-focus to be inlined
Achieve this by generating a `focus()` function for such components
and call it from the outside.

This replaces the previous focus handling with what should be cleaner:

- Any `forward-focus: some-element;` is basically syntactic sugar for
 `public function focus() { some-element.focus(); }`.
- The init code gets simplified to calling focus() on the root, if it's
  available.

Since the `focus()` functions are now generated in the imports pass,
they become visible in the style checker. That means the checker
requires consistent focus handling between the styles.
2024-01-26 12:16:09 +01:00
..
accessibility Compiler: Error when assigning to compile time properties 2023-12-12 21:51:56 +01:00
analysis janitor: Go over our spell checking setup 2023-10-16 09:01:51 +02:00
basic Fix detection of properties when they are only used in two way bindings 2023-12-19 11:14:53 +01:00
callbacks Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
elements Compiler: Error when assigning to compile time properties 2023-12-12 21:51:56 +01:00
exports Update royalty free license to 1.1 (#2994) 2023-07-10 10:12:11 +02:00
expressions Parser: Hint for the mod function when parsing % 2023-12-19 17:23:30 +01:00
focus Don't require components that use forward-focus to be inlined 2024-01-26 12:16:09 +01:00
functions Compiler: avoid two error message when trying to call a non-existing function 2024-01-24 20:06:48 +01:00
imports Fix compiler panic when trying to resolve aliases in invalid import 2023-10-16 16:37:49 +02:00
layout Compiler: Don't panic when a Row is repeated in a GridLayout 2023-10-23 19:43:46 +02:00
lookup Compiler: Error when assigning to compile time properties 2023-12-12 21:51:56 +01:00
new_syntax Run the import pass even when building the object tree fails. 2023-07-14 14:13:48 +02:00
parse_error Better error when using ';' instead of ',' when declaring struct 2023-07-24 12:31:41 +02:00