slint/internal/compiler/widgets/qt
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
..
button.slint Don't require components that use forward-focus to be inlined 2024-01-26 12:16:09 +01:00
checkbox.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
combobox.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
groupbox.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
internal-scrollview.slint Rename "native" style to "qt", make "native" an alias 2023-09-25 09:06:47 +02:00
layouts.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
lineedit.slint Add set-selection-offsets function to TextInput, TextEdit, and LineEdit (#4197) 2024-01-06 11:12:53 +01:00
progressindicator.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
scrollview.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
slider.slint Don't require components that use forward-focus to be inlined 2024-01-26 12:16:09 +01:00
spinbox.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
spinner.slint Qt Spinner: different design without hardcoded strong colors 2023-11-08 12:04:18 +01:00
std-widgets-impl.slint added palette global (#3984) 2023-12-11 14:44:05 +00:00
std-widgets.slint added palette global (#3984) 2023-12-11 14:44:05 +00:00
switch.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
tableview.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00
tabwidget.slint cleanup widgets according to upcoming code guidelines (#3771) 2023-10-30 10:45:25 +01:00