From 89e796cb213ee9618b21566c5eaa5aa7173213e8 Mon Sep 17 00:00:00 2001 From: outfoxxed Date: Sat, 24 May 2025 02:00:55 -0700 Subject: [PATCH] widgets/cliprect: default data property instead of children property --- src/widgets/ClippingRectangle.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/widgets/ClippingRectangle.qml b/src/widgets/ClippingRectangle.qml index 03b21b98..17f3bca4 100644 --- a/src/widgets/ClippingRectangle.qml +++ b/src/widgets/ClippingRectangle.qml @@ -38,10 +38,14 @@ Item { /// Radius of the bottom right corner. Defaults to @@radius. property /*real*/alias bottomRightRadius: rectangle.bottomRightRadius + /// Data of the ClippingRectangle's @@contentItem. (`list`). + /// + /// See @@QtQuick.Item.data for details. + default property alias data: contentItem.data /// Visual children of the ClippingRectangle's @@contentItem. (`list`). /// /// See @@QtQuick.Item.children for details. - default property alias children: contentItem.children + property alias children: contentItem.children /// The item containing the rectangle's content. /// There is usually no reason to use this directly. readonly property alias contentItem: contentItem