From 9cfcdace218359cc783133ca1158e146188d6f42 Mon Sep 17 00:00:00 2001 From: Anthony Laibe Date: Fri, 16 Jul 2021 11:13:34 +0200 Subject: [PATCH] feat(StatusChatListAndCategories): new API showPopupMenu --- src/StatusQ/Components/StatusChatListAndCategories.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/StatusQ/Components/StatusChatListAndCategories.qml b/src/StatusQ/Components/StatusChatListAndCategories.qml index e0c8f0b0..e48664d6 100644 --- a/src/StatusQ/Components/StatusChatListAndCategories.qml +++ b/src/StatusQ/Components/StatusChatListAndCategories.qml @@ -12,6 +12,7 @@ Item { property string selectedChatId: "" property bool showCategoryActionButtons: false + property bool showPopupMenu: true property alias chatList: statusChatList.chatListItems property alias categoryList: statusChatListCategories property alias sensor: sensor @@ -37,7 +38,7 @@ Item { height: statusChatListAndCategories.height acceptedButtons: Qt.LeftButton | Qt.RightButton onClicked: { - if (mouse.button === Qt.RightButton && !!statusChatListAndCategories.popupMenu) { + if (mouse.button === Qt.RightButton && showPopupMenu && !!statusChatListAndCategories.popupMenu) { popupMenuSlot.item.popup(mouse.x + 4, mouse.y + 6) return }