From d0b655dda81441ccc219f714aeb0616cfcf43ab0 Mon Sep 17 00:00:00 2001 From: Luca Di Sera Date: Mon, 4 Aug 2025 17:07:37 +0200 Subject: [PATCH] FX&MaterialShowroom: Remove reference to parent in ui.qml file MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ui.qml files do not support referencing the top-level `parent`, and qmllint produces a warning when this is done. Thus, remove the line that refers to `parent` from the ui.qml file. In this particular case the only usage site of the type defined by the relevant .ui.qml file sets the relevant property on the spot, such that there should be no change in semantic with the removal. Pick-to: 6.10 Task-number: QTBUG-138170 Change-Id: I68f9acc7c853afc1a62630a127bf1fa6eb891ec9 Reviewed-by: Olivier De Cannière --- .../FX_Material_Showroom/content/Figma_Assets/Scrollbar.ui.qml | 1 - 1 file changed, 1 deletion(-) diff --git a/examples/demos/FX_Material_Showroom/content/Figma_Assets/Scrollbar.ui.qml b/examples/demos/FX_Material_Showroom/content/Figma_Assets/Scrollbar.ui.qml index 5ee54415b..9a3d046cf 100644 --- a/examples/demos/FX_Material_Showroom/content/Figma_Assets/Scrollbar.ui.qml +++ b/examples/demos/FX_Material_Showroom/content/Figma_Assets/Scrollbar.ui.qml @@ -7,7 +7,6 @@ Item { id: scrollbar width: 4 height: 764 - anchors.right: parent.right anchors.rightMargin: -24 property real scrollPos: 0