mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-01 06:11:16 +00:00
Get rid of the component in the C++ ComponentWindow::run
This commit is contained in:
parent
01b8605259
commit
3fce3e6f1b
3 changed files with 3 additions and 3 deletions
|
@ -84,8 +84,7 @@ public:
|
||||||
ComponentWindow(ComponentWindow &&) = delete;
|
ComponentWindow(ComponentWindow &&) = delete;
|
||||||
ComponentWindow &operator=(const ComponentWindow &) = delete;
|
ComponentWindow &operator=(const ComponentWindow &) = delete;
|
||||||
|
|
||||||
template<typename Component>
|
void run() const
|
||||||
void run(const Component *c) const
|
|
||||||
{
|
{
|
||||||
sixtyfps_component_window_run(&inner);
|
sixtyfps_component_window_run(&inner);
|
||||||
}
|
}
|
||||||
|
|
|
@ -200,3 +200,4 @@ private:
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace sixtyfps
|
} // namespace sixtyfps
|
||||||
|
|
||||||
|
|
|
@ -858,7 +858,7 @@ fn generate_component(
|
||||||
Declaration::Function(Function {
|
Declaration::Function(Function {
|
||||||
name: "run".into(),
|
name: "run".into(),
|
||||||
signature: "() const".into(),
|
signature: "() const".into(),
|
||||||
statements: Some(vec!["window.run(this);".into()]),
|
statements: Some(vec!["window.run();".into()]),
|
||||||
..Default::default()
|
..Default::default()
|
||||||
}),
|
}),
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue