From 38c04cb91c4ca04bd47567bdaf4c056b6a34b7f4 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 16 Jul 2021 11:11:31 +0200 Subject: [PATCH] feat(StatusChatInfoToolBar): make statusMenuButton public --- src/StatusQ/Components/StatusChatInfoToolBar.qml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/StatusQ/Components/StatusChatInfoToolBar.qml b/src/StatusQ/Components/StatusChatInfoToolBar.qml index dcaf4592..63c89e30 100644 --- a/src/StatusQ/Components/StatusChatInfoToolBar.qml +++ b/src/StatusQ/Components/StatusChatInfoToolBar.qml @@ -11,6 +11,7 @@ Item { implicitHeight: 56 property alias chatInfoButton: statusChatInfoButton + property alias menuButton: statusMenuButton property Component popupMenu signal chatInfoButtonClicked() @@ -32,7 +33,7 @@ Item { } StatusRoundButton { - id: menuButton + id: statusMenuButton anchors.right: parent.right anchors.rightMargin: 8 anchors.verticalCenter: parent.verticalCenter @@ -49,14 +50,14 @@ Item { State { name: "default" PropertyChanges { - target: menuButton + target: statusMenuButton icon.rotation: 0 } }, State { name: "pressed" PropertyChanges { - target: menuButton + target: statusMenuButton icon.rotation: 45 highlighted: true } @@ -87,8 +88,8 @@ Item { onClicked: { statusChatInfoToolBar.addButtonClicked(mouse) - menuButton.state = "pressed" - popupMenuSlot.item.popup(menuButton.width-popupMenuSlot.item.width, menuButton.height + 4) + statusMenuButton.state = "pressed" + popupMenuSlot.item.popup(statusMenuButton.width-popupMenuSlot.item.width, statusMenuButton.height + 4) } Loader { @@ -96,7 +97,7 @@ Item { active: !!statusChatInfoToolBar.popupMenu onLoaded: { popupMenuSlot.item.closeHandler = function () { - menuButton.state = "default" + statusMenuButton.state = "default" } } }