From 99ece5f196422d0028b03f17244d643ffd7fc976 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 18 Mar 2021 01:09:41 +0300 Subject: Fix some `qmllint -U` warnings --- qml/Message.qml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'qml/Message.qml') diff --git a/qml/Message.qml b/qml/Message.qml index 6fc0318..5d535f4 100644 --- a/qml/Message.qml +++ b/qml/Message.qml @@ -93,11 +93,11 @@ RowLayout { anchors.fill: parent acceptedButtons: Qt.LeftButton | Qt.RightButton - onClicked: { + onClicked: function(mouse) { if (mouse.button === Qt.RightButton) contextMenu.popup() } - onPressAndHold: { + onPressAndHold: function(mouse) { if (mouse.source === Qt.MouseEventNotSynthesized) contextMenu.popup() } @@ -105,7 +105,7 @@ RowLayout { MessageDialog { id: messageDialog title: "Message info" - text: context.getMessageInfo(messageObject.message.id) + text: messageObject.context.getMessageInfo(messageObject.message.id) onAccepted: { } } @@ -117,7 +117,7 @@ RowLayout { } Action { text: "Start chat" - onTriggered: context.decideOnContactRequest(message.id, 0) + onTriggered: messageObject.context.decideOnContactRequest(messageObject.message.id, 0) } } } -- cgit v1.2.3-70-g09d2