diff options
-rw-r--r-- | Header.ui.qml | 9 | ||||
-rw-r--r-- | 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 } |