aboutsummaryrefslogtreecommitdiff
path: root/qml
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-03-18 01:09:41 +0300
committerlink2xt <link2xt@testrun.org>2021-03-19 03:13:33 +0300
commit99ece5f196422d0028b03f17244d643ffd7fc976 (patch)
tree7674d33102e5014f5c271bb87bccd19e33b39947 /qml
parent1b79a5d06f02035db165b7a2c294df1006a503ed (diff)
downloadkdeltachat-99ece5f196422d0028b03f17244d643ffd7fc976.tar.gz
kdeltachat-99ece5f196422d0028b03f17244d643ffd7fc976.zip
Fix some `qmllint -U` warnings
Diffstat (limited to 'qml')
-rw-r--r--qml/ChatPage.qml2
-rw-r--r--qml/Message.qml8
2 files changed, 5 insertions, 5 deletions
diff --git a/qml/ChatPage.qml b/qml/ChatPage.qml
index 97d8069..1a6eec7 100644
--- a/qml/ChatPage.qml
+++ b/qml/ChatPage.qml
@@ -144,6 +144,6 @@ Kirigami.ScrollablePage {
footer: Loader {
sourceComponent: composePane
Layout.fillWidth: true
- visible: chat && chat.canSend
+ visible: chatPage.chat && chatPage.chat.canSend
}
}
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)
}
}
}