slint/internal
Olivier Goffart 9111dbfbce Don't optimize const state property
state info properties are special and cannot simply be inlined or set
(because we need to record the time it was changed and stuff)
So disable the optimization for now.

In fact, what could be done is to remove the state entirely if the state property
is constant. But that change is a bit more involved

This patch does:
 - Don't inline const state property
 - Don't generate a call to .set in the generated code
 - Also allowed to debug the expression with a context from the generator
   (added T generic parameter to the pretty printer)

Fix panic reported in https://github.com/slint-ui/slint/issues/1327#issuecomment-1151244049
2022-06-27 16:25:57 +02:00
..
backends stm32h735h: copy assets from flash to ram so we can access them 2022-06-18 20:00:21 +02:00
common Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00
compiler Don't optimize const state property 2022-06-27 16:25:57 +02:00
core Janitor: cleanup a function 2022-06-18 22:31:38 +02:00
core-macros Bump version number to 0.2.5 2022-05-09 16:16:00 +00:00
interpreter Basic Slint accessibility support (#1294) 2022-06-08 20:42:10 +02:00