mirror of
https://github.com/slint-ui/slint.git
synced 2025-09-30 05:44:52 +00:00
Add a window to the top-level component
This means that we always have a window and for the C++ API we don't require this ComponentWindow use anymore.
This commit is contained in:
parent
5b90f3edf5
commit
f2eec61968
10 changed files with 48 additions and 15 deletions
|
@ -15,6 +15,5 @@ int main()
|
|||
component.set_counter(component.get_counter() - 1);
|
||||
});
|
||||
|
||||
sixtyfps::ComponentWindow window;
|
||||
window.run(&component);
|
||||
component.run();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue