diff options
Diffstat (limited to 'examples/declarative/namespaces/lib/Chronos/Hand.qml')
-rw-r--r-- | examples/declarative/namespaces/lib/Chronos/Hand.qml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/declarative/namespaces/lib/Chronos/Hand.qml b/examples/declarative/namespaces/lib/Chronos/Hand.qml new file mode 100644 index 0000000..3662e74 --- /dev/null +++ b/examples/declarative/namespaces/lib/Chronos/Hand.qml @@ -0,0 +1,9 @@ +<Item id="Hand"> + <properties> + <Property name="length" value="100"/> + <Property name="thickness" value="0"/> + </properties> + <Item rotation="-90"> + <Rect width="{length}" height="{thickness==0 ? length/8 : thickness}" y="{-height/2}"/> + </Item> +</Item> |