diff options
Diffstat (limited to 'examples/declarative/slideswitch/display.qml')
-rw-r--r-- | examples/declarative/slideswitch/display.qml | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/examples/declarative/slideswitch/display.qml b/examples/declarative/slideswitch/display.qml index b62422c..cea89b6 100644 --- a/examples/declarative/slideswitch/display.qml +++ b/examples/declarative/slideswitch/display.qml @@ -1,3 +1,8 @@ -<Rect color="white" width="150" height="150"> - <Switch anchors.centeredIn="{parent}"/> -</Rect> +Rect { + color: "white" + width: 150 + height: 150 + Switch { + anchors.centeredIn: parent + } +} |