Skip to content

Commit 89e796c

Browse files
committed
widgets/cliprect: default data property instead of children property
1 parent 3cf96ec commit 89e796c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/widgets/ClippingRectangle.qml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,14 @@ Item {
3838
/// Radius of the bottom right corner. Defaults to @@radius.
3939
property /*real*/alias bottomRightRadius: rectangle.bottomRightRadius
4040

41+
/// Data of the ClippingRectangle's @@contentItem. (`list<QtObject>`).
42+
///
43+
/// See @@QtQuick.Item.data for details.
44+
default property alias data: contentItem.data
4145
/// Visual children of the ClippingRectangle's @@contentItem. (`list<Item>`).
4246
///
4347
/// See @@QtQuick.Item.children for details.
44-
default property alias children: contentItem.children
48+
property alias children: contentItem.children
4549
/// The item containing the rectangle's content.
4650
/// There is usually no reason to use this directly.
4751
readonly property alias contentItem: contentItem

0 commit comments

Comments
 (0)