From 67f611b63cf80ebfb128bb3fb3d2bf17a90442de 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: Thu, 30 Mar 2023 19:55:56 +0800 Subject: Shorten menu item ID --- Header.ui.qml | 9 ++++----- Header/CartItem.ui.qml | 6 +++--- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Header.ui.qml b/Header.ui.qml index 29091b6..4fdeb7c 100644 --- a/Header.ui.qml +++ b/Header.ui.qml @@ -234,7 +234,7 @@ ToolBar { sourceComponent: background } delegate: MenuItem { - id: profileMenuItem + id: menuItem font: Eduport.bsBtnFont horizontalPadding: 16 verticalPadding: 6.4 @@ -242,8 +242,7 @@ ToolBar { contentItem: RowLayout { Image { - source: profileMenuItem - .icon.source + source: menuItem.icon.source sourceSize { width: profileMenuItem .icon.width @@ -261,8 +260,8 @@ ToolBar { } Text { - text: profileMenuItem.text - font: profileMenuItem.font + text: menuItem.text + font: menuItem.font color: highlighted ? Eduport.bsDropdownLinkHoverColor : Eduport.bsDropdownLinkColor diff --git a/Header/CartItem.ui.qml b/Header/CartItem.ui.qml index 2fbf03b..4f97c29 100644 --- a/Header/CartItem.ui.qml +++ b/Header/CartItem.ui.qml @@ -6,7 +6,7 @@ import Eduport 1.4 import "../Label" as Lbl MenuItem { - id: cartMenuItem + id: menuItem contentItem: ColumnLayout { Loader { @@ -21,7 +21,7 @@ MenuItem { Layout.margins: 16 Loader { - property string imageSource: cartMenuItem + property string imageSource: menuItem .icon.source property int imageWidth: 50 property int imageHeight: 50 @@ -35,7 +35,7 @@ MenuItem { RowLayout { Lbl.H6 { - text: cartMenuItem.text + text: menuItem.text Layout.fillWidth: true } -- cgit v1.2.3