// Copyright © SixtyFPS GmbH // SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0 import { HorizontalBox } from "std-widgets.slint"; component MyP inherits PopupWindow {} export component Component { GridLayout { p1 := PopupWindow {} // ^warning{PopupWindow shouldn't be a children of a layout} Row { PopupWindow {} // ^warning{PopupWindow shouldn't be a children of a layout} } Rectangle { PopupWindow {} // no warnings there } HorizontalBox { PopupWindow {} } // ^warning{PopupWindow shouldn't be a children of a layout} VerticalLayout { MyP {} } // ^warning{PopupWindow shouldn't be a children of a layout} } }