feat(StatusChatListAndCategories): new API showPopupMenu
This commit is contained in:
parent
38c04cb91c
commit
9cfcdace21
|
@ -12,6 +12,7 @@ Item {
|
||||||
|
|
||||||
property string selectedChatId: ""
|
property string selectedChatId: ""
|
||||||
property bool showCategoryActionButtons: false
|
property bool showCategoryActionButtons: false
|
||||||
|
property bool showPopupMenu: true
|
||||||
property alias chatList: statusChatList.chatListItems
|
property alias chatList: statusChatList.chatListItems
|
||||||
property alias categoryList: statusChatListCategories
|
property alias categoryList: statusChatListCategories
|
||||||
property alias sensor: sensor
|
property alias sensor: sensor
|
||||||
|
@ -37,7 +38,7 @@ Item {
|
||||||
height: statusChatListAndCategories.height
|
height: statusChatListAndCategories.height
|
||||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||||
onClicked: {
|
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)
|
popupMenuSlot.item.popup(mouse.x + 4, mouse.y + 6)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue