From 63bbc72b546f51033e698f008159daae0a199b36 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Tue, 16 May 2023 18:06:38 +0300 Subject: [PATCH] fix(StatusMessageReply): Fix clicking on sender (#10717) --- .../statusMessage/StatusMessageReply.qml | 32 +++++++++++++------ 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/ui/StatusQ/src/StatusQ/Components/private/statusMessage/StatusMessageReply.qml b/ui/StatusQ/src/StatusQ/Components/private/statusMessage/StatusMessageReply.qml index 3e7d8a086a..b35551a6bb 100644 --- a/ui/StatusQ/src/StatusQ/Components/private/statusMessage/StatusMessageReply.qml +++ b/ui/StatusQ/src/StatusQ/Components/private/statusMessage/StatusMessageReply.qml @@ -62,6 +62,15 @@ Item { implicitHeight: messageLayout.implicitHeight implicitWidth: messageLayout.implicitWidth + MouseArea { + anchors.fill: parent + hoverEnabled: true + cursorShape: Qt.PointingHandCursor + onClicked: { + root.messageClicked(mouse) + } + } + ColumnLayout { id: messageLayout anchors.fill: parent @@ -89,6 +98,19 @@ Item { font.pixelSize: Theme.secondaryTextFontSize font.weight: Font.Medium text: replyDetails.amISender ? qsTr("You") : replyDetails.sender.displayName + font.underline: mouseArea.containsMouse + + MouseArea { + id: mouseArea + anchors.fill: parent + cursorShape: enabled ? Qt.PointingHandCursor : Qt.ArrowCursor + acceptedButtons: Qt.LeftButton | Qt.RightButton + enabled: root.profileClickable + hoverEnabled: true + onClicked: { + root.replyProfileClicked(this, mouse) + } + } } } Loader { @@ -107,7 +129,6 @@ Item { } } - Loader { Layout.fillWidth: true asynchronous: true @@ -149,15 +170,6 @@ Item { } } } - - MouseArea { - anchors.fill: parent - hoverEnabled: true - cursorShape: Qt.PointingHandCursor - onClicked: { - root.messageClicked(mouse) - } - } } } }