Use long press as right click on messages

This commit is contained in:
Reinhold Gschweicher
2020-11-30 21:18:41 +01:00
committed by Carl Schwan
parent 41a4610acc
commit f10ef11919

View File

@@ -255,9 +255,14 @@ Kirigami.ScrollablePage {
Layout.fillWidth: true
Layout.maximumWidth: messageListView.width
mouseArea: MouseArea {
acceptedButtons: Qt.RightButton
acceptedButtons: Qt.LeftButton | Qt.RightButton
anchors.fill: parent
onClicked: openMessageContext(author, display, eventId, toolTip);
onClicked: {
if (mouse.button == Qt.RightButton) {
openMessageContext(author, display, eventId, toolTip);
}
}
onPressAndHold: openMessageContext(author, display, eventId, toolTip);
}
onReplyClicked: goToEvent(eventID)
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);