fix(StatusMessageReply): Fix clicking on sender (#10717)

This commit is contained in:
Igor Sirotin 2023-05-16 18:06:38 +03:00 committed by GitHub
parent 3d5c8f8024
commit 63bbc72b54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 22 additions and 10 deletions

View File

@ -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)
}
}
}
}
}