From f65528b4389488e3bdf63d2efd3f3bfbb0217e60 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 23:04:30 +0800 Subject: CartItem now is for the content of MenuItem so it can be reused for adding Items (instead of Actions) to the cart menu --- Header.ui.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'Header.ui.qml') diff --git a/Header.ui.qml b/Header.ui.qml index 2370c7b..daa2af1 100644 --- a/Header.ui.qml +++ b/Header.ui.qml @@ -134,7 +134,15 @@ ToolBar { width: 256 sourceComponent: background } - delegate: CartItem {} + delegate: MenuItem { + contentItem: CartItem { + imageSource: icon.source + titleText: text + } + background: Rectangle { + color: "transparent" + } + } Lbl.H5 { text: qsTr("Cart items") -- cgit v1.2.3