From 9c36f03c76498f1a860b08e4b5f885f14c293836 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sat, 18 Feb 2023 16:09:07 +0800 Subject: No need for wrapper Item any more --- InstructorEditProfile.ui.qml | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) (limited to 'InstructorEditProfile.ui.qml') diff --git a/InstructorEditProfile.ui.qml b/InstructorEditProfile.ui.qml index 3eb9070..b2f0633 100644 --- a/InstructorEditProfile.ui.qml +++ b/InstructorEditProfile.ui.qml @@ -98,25 +98,20 @@ Flickable { RowLayout { - Item { + Image { + id: avatar Layout.rightMargin: 25.6 - implicitWidth: 82 - implicitHeight: 82 - - Image { - id: avatar - source: "https://eduport.webestica.com/assets/images/avatar/07.jpg" - sourceSize { + source: "https://eduport.webestica.com/assets/images/avatar/07.jpg" + sourceSize { + width: 82 + height: 82 + } + layer.enabled: true + layer.effect: OpacityMask { + maskSource: Rectangle { width: 82 height: 82 - } - layer.enabled: true - layer.effect: OpacityMask { - maskSource: Rectangle { - width: 82 - height: 82 - radius: 82 - } + radius: 82 } } } -- cgit v1.2.3