mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-03 02:13:21 +00:00

instead of panicking We need to mve stuff in the parent element and that doesn't work if it is a repeated element. Also there would not be ways to call show on it anyway. Fixes #1079
26 lines
657 B
Text
26 lines
657 B
Text
// Copyright © SixtyFPS GmbH <info@slint-ui.com>
|
|
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-commercial
|
|
|
|
|
|
X := PopupWindow {
|
|
// ^error{PopupWindow cannot be the top level}
|
|
|
|
Rectangle {
|
|
|
|
popup := PopupWindow {
|
|
// ^error{Cannot access the inside of a PopupWindow from enclosing component}
|
|
r := Rectangle {
|
|
}
|
|
}
|
|
|
|
background: r.background;
|
|
|
|
}
|
|
|
|
|
|
if true : PopupWindow {}
|
|
// ^error{PopupWindow cannot be directly repeated or conditional}
|
|
for abc in [1] : PopupWindow {}
|
|
// ^error{PopupWindow cannot be directly repeated or conditional}
|
|
|
|
}
|