mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Support for referring to other globals from globals
- We need to make sure that the initialization of global is in the right order. - In C++ and rust, we need to add accessor to the global component - There can be `PropertyReference::Global` in binding of globals - The interpreter globals need to hold references to the global they may depend on Fixes #175
This commit is contained in:
parent
5493b30d4d
commit
0dc188f328
13 changed files with 149 additions and 58 deletions
|
@ -439,7 +439,8 @@ fn gen_backend_qt(
|
|||
|
||||
config.export.body.insert(
|
||||
"NativeStyleMetrics".to_owned(),
|
||||
" inline NativeStyleMetrics(); inline ~NativeStyleMetrics();".to_owned(),
|
||||
" inline explicit NativeStyleMetrics(void* = nullptr); inline ~NativeStyleMetrics();"
|
||||
.to_owned(),
|
||||
);
|
||||
|
||||
let mut crate_dir = root_dir.to_owned();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue