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