mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
Fix slint warnings in the docs
This commit is contained in:
parent
a3bb475500
commit
4a1a7b1f7e
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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%;
|
||||
// ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue