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:
Simon Hausmann 2023-01-23 15:19:49 +01:00 committed by GitHub
parent 33d68687c2
commit 24dcef5fed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
130 changed files with 175 additions and 143 deletions

View file

@ -2,7 +2,7 @@
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
import { TabWidget } from "std-widgets.slint";
Test1 := Rectangle {
export Test1 := Rectangle {
TabWidget {
Rectangle {}
// ^error{Rectangle is not allowed within TabWidget. Only Tab are valid children}