feat(StatusChatListItem): accept right clicks
Also triggers the context menu in `StatusChatListCategory`. Fixes #131
This commit is contained in:
parent
30956a757d
commit
afa4739df6
|
@ -30,7 +30,14 @@ Column {
|
|||
title: statusChatListCategory.name
|
||||
opened: statusChatListCategory.opened
|
||||
|
||||
onClicked: statusChatListCategory.opened = !opened
|
||||
onClicked: {
|
||||
if (mouse.button === Qt.RightButton) {
|
||||
highlighted = true
|
||||
popupMenuSlot.item.popup(mouse.x + 4, mouse.y + 6)
|
||||
return
|
||||
}
|
||||
statusChatListCategory.opened = !opened
|
||||
}
|
||||
onToggleButtonClicked: statusChatListCategory.opened = !opened
|
||||
onMenuButtonClicked: {
|
||||
highlighted = true
|
||||
|
|
|
@ -48,6 +48,7 @@ Rectangle {
|
|||
|
||||
anchors.fill: parent
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
acceptedButtons: Qt.LeftButton | Qt.RightButton
|
||||
hoverEnabled: true
|
||||
|
||||
Loader {
|
||||
|
|
Loading…
Reference in New Issue