diff options
Diffstat (limited to 'src/quick/doc/snippets/qml/loader/sizeitem.qml')
-rw-r--r-- | src/quick/doc/snippets/qml/loader/sizeitem.qml | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/quick/doc/snippets/qml/loader/sizeitem.qml b/src/quick/doc/snippets/qml/loader/sizeitem.qml index db79e28816..750ea9f58a 100644 --- a/src/quick/doc/snippets/qml/loader/sizeitem.qml +++ b/src/quick/doc/snippets/qml/loader/sizeitem.qml @@ -34,21 +34,22 @@ import QtQuick 2.0 Item { - width: 200; height: 200 + width: 200; height: 200 - Loader { - // position the Loader in the center of the parent - anchors.centerIn: parent - sourceComponent: rect - } + Loader { + // position the Loader in the center + // of the parent + anchors.centerIn: parent + sourceComponent: rect + } - Component { - id: rect - Rectangle { - width: 50 - height: 50 - color: "red" - } - } + Component { + id: rect + Rectangle { + width: 50 + height: 50 + color: "red" + } + } } //![0] |