fix(StatusMessageReply): Fix clicking on sender (#10717)
This commit is contained in:
parent
3d5c8f8024
commit
63bbc72b54
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue