From 9f9498541a100396d307c11ff579bd9e2dc727b1 Mon Sep 17 00:00:00 2001 From: Eamonn Rea Date: Sun, 27 Dec 2020 01:13:12 +0000 Subject: [PATCH] Fix cursorShape not updating for messages (cherry picked from commit 066ab1e6c682919fe81047cf356efcec0f63478c) --- imports/NeoChat/Page/RoomPage.qml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/imports/NeoChat/Page/RoomPage.qml b/imports/NeoChat/Page/RoomPage.qml index 8a152a11f..9e7d4797b 100644 --- a/imports/NeoChat/Page/RoomPage.qml +++ b/imports/NeoChat/Page/RoomPage.qml @@ -296,19 +296,19 @@ Kirigami.ScrollablePage { innerObject: MessageDelegate { Layout.fillWidth: true Layout.maximumWidth: messageListView.width - mouseArea: MouseArea { - acceptedButtons: (Kirigami.Settings.isMobile ? Qt.LeftButton : 0) | Qt.RightButton - anchors.fill: parent - 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); innerObject: [ + MouseArea { + acceptedButtons: (Kirigami.Settings.isMobile ? Qt.LeftButton : 0) | Qt.RightButton + anchors.fill: parent + onClicked: { + if (mouse.button == Qt.RightButton) { + openMessageContext(author, display, eventId, toolTip); + } + } + onPressAndHold: openMessageContext(author, display, eventId, toolTip); + }, TextDelegate { Layout.fillWidth: true Layout.rightMargin: Kirigami.Units.largeSpacing