Fix slint warnings in the docs

This commit is contained in:
Olivier Goffart 2024-01-12 09:24:51 +01:00
parent a3bb475500
commit 4a1a7b1f7e
2 changed files with 2 additions and 2 deletions

View file

@ -45,7 +45,7 @@ by a `std::vector<T>`.
Let's assume we've this code in our `.slint` file:
```slint,no-preview
component SampleComponent inherits Window {
export component SampleComponent inherits Window {
in-out property<int> counter;
in-out property<string> user_name;
callback hello;

View file

@ -96,7 +96,7 @@ A special case is to set the preferred size to be the size of the parent using `
For example,this component will use the size of the parent by default:
```slint
component MyComponent {
export component MyComponent {
preferred-width: 100%;
preferred-height: 100%;
// ...