Fix cursorShape not updating for messages

(cherry picked from commit 066ab1e6c6)
This commit is contained in:
Eamonn Rea
2020-12-27 01:13:12 +00:00
committed by Nicolas Fella
parent 50a4d0a33f
commit 9f9498541a

View File

@@ -296,7 +296,10 @@ Kirigami.ScrollablePage {
innerObject: MessageDelegate { innerObject: MessageDelegate {
Layout.fillWidth: true Layout.fillWidth: true
Layout.maximumWidth: messageListView.width Layout.maximumWidth: messageListView.width
mouseArea: MouseArea { onReplyClicked: goToEvent(eventID)
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
innerObject: [
MouseArea {
acceptedButtons: (Kirigami.Settings.isMobile ? Qt.LeftButton : 0) | Qt.RightButton acceptedButtons: (Kirigami.Settings.isMobile ? Qt.LeftButton : 0) | Qt.RightButton
anchors.fill: parent anchors.fill: parent
onClicked: { onClicked: {
@@ -305,10 +308,7 @@ Kirigami.ScrollablePage {
} }
} }
onPressAndHold: openMessageContext(author, display, eventId, toolTip); onPressAndHold: openMessageContext(author, display, eventId, toolTip);
} },
onReplyClicked: goToEvent(eventID)
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
innerObject: [
TextDelegate { TextDelegate {
Layout.fillWidth: true Layout.fillWidth: true
Layout.rightMargin: Kirigami.Units.largeSpacing Layout.rightMargin: Kirigami.Units.largeSpacing