mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 10:50:00 +00:00
Tests: look at _all_ markdown files for slint snippets
We were missing some which had errors Fixes #2689 (Although the error for 2689 was in C++ and would not have been discovered by the test, better to have it parsed anyway)
This commit is contained in:
parent
9f8d576dfc
commit
76356c181b
5 changed files with 45 additions and 28 deletions
|
@ -42,13 +42,13 @@ endif()
|
|||
|
||||
Suppose `my_application_ui.slint` was a "Hello World" like this:
|
||||
|
||||
```slint,ignore
|
||||
```slint,no-preview
|
||||
export component HelloWorld inherits Window {
|
||||
width: 400px;
|
||||
height: 400px;
|
||||
|
||||
// Declare an alias that exposes the label's text property to C++
|
||||
property my_label <=> label.text;
|
||||
in property my_label <=> label.text;
|
||||
|
||||
label := Text {
|
||||
y: parent.width / 2;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue