slint/internal/compiler/tests/syntax/elements/timer.slint
Olivier Goffart a9f526491a Timer Element
Closes #5724
2024-08-16 16:36:38 +02:00

25 lines
624 B
Text

// Copyright © SixtyFPS GmbH <info@slint.dev>
// SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
export component Def {
Timer {
interval: 100ms;
Rectangle {}
// ^error{Timer cannot have children elements}
}
Timer {
interval: 200ms;
width: 500px;
// ^error{Unknown property width in Timer}
y: 12px;
// ^error{Unknown property y in Timer}
opacity: 0.5;
// ^error{Unknown property opacity in Timer}
visible: false;
// ^error{Unknown property visible in Timer}
}
}