mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
First stage of cleaning up the export handling of the slint root component (#2095)
We implicitly export the last component of a .slint file to the generator. Issue a warning when that happens and suggest to export it explicitly.
This commit is contained in:
parent
33d68687c2
commit
24dcef5fed
130 changed files with 175 additions and 143 deletions
|
@ -3,8 +3,8 @@
|
|||
|
||||
import { StandardButton } from "std-widgets.slint";
|
||||
|
||||
Test := Dialog {
|
||||
// ^error{A Dialog must have a single child element that is not StandardButton}
|
||||
export Test := Dialog {
|
||||
// ^error{A Dialog must have a single child element that is not StandardButton}
|
||||
StandardButton { kind: ok; }
|
||||
StandardButton { }
|
||||
// ^error{The `kind` property of the StandardButton in a Dialog must be set}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue