aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/doc/snippets/qml/qml-documents/LabeledImageBox.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/doc/snippets/qml/qml-documents/LabeledImageBox.qml')
-rw-r--r--src/qml/doc/snippets/qml/qml-documents/LabeledImageBox.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/qml/doc/snippets/qml/qml-documents/LabeledImageBox.qml b/src/qml/doc/snippets/qml/qml-documents/LabeledImageBox.qml
new file mode 100644
index 0000000000..bfc5a7b45e
--- /dev/null
+++ b/src/qml/doc/snippets/qml/qml-documents/LabeledImageBox.qml
@@ -0,0 +1,17 @@
+// Copyright (C) 2020 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+//! [document]
+// LabeledImageBox.qml
+import QtQuick
+
+Rectangle {
+ property alias caption: image.caption
+ property alias source: image.source
+ border.width: 2
+ border.color: "black"
+ Images.LabeledImage {
+ id: image
+ }
+}
+//! [document]