3 ms·
This looks superficially similar to (a related subset of) QML code. Rectangle { id: photo // id on the first line
by dom0 10y ago
This looks superficially similar to (a related subset of) QML code.
Rectangle {
id: photo // id on the first line makes it easy to find an object
property bool thumbnail: false // property declarations
property alias image: photoImage.source
signal clicked // signal declarations
function doSomething(x) // javascript functions
{
return x + photoImage.width
}
color: "gray" // object properties
x: 20; y: 20; height: 150 // try to group related properties together
width: { // large bindings
if(photoImage.width > 200){
photoImage.width;
}else{
200;
}
}
....
}