-
I'm having an in-out property named Is it possible to rename the property slint::slint! {
import { Button, SpinBox } from "std-widgets.slint";
export component MainWindow inherits Window {
width: 300px;
height: 200px;
in-out property <{x: int, y: int}> center: { x: 0, y: 0 };
VerticalLayout {
HorizontalLayout {
padding: 5px; spacing: 5px;
Text { text: "zoom:"; vertical-alignment: center; } // <- This won't work due to existence of a property with similar name
SpinBox {}
}
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
ogoffart
Jul 2, 2024
Replies: 1 comment
-
You can qualify the enum value with the enum name. For example I wonder if there could be an easier diagnostic ( see #4397 ) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jsprog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can qualify the enum value with the enum name.
For example
vertical-alignment: TextVerticalAlignment.center;
I wonder if there could be an easier diagnostic ( see #4397 )