Now allow links to be clicked in replies

This commit is contained in:
James Graham
2022-12-13 19:59:33 +00:00
parent d68fb81bcf
commit 1176cf029b

View File

@@ -82,13 +82,14 @@ Item {
}
}
}
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: {
replyComponent.replyClicked()
HoverHandler{
cursorShape: Qt.PointingHandCursor
}
TapHandler {
acceptedButtons: Qt.LeftButton
onTapped: {
replyComponent.replyClicked()
}
}
}
@@ -98,6 +99,18 @@ Item {
textMessage: reply.display
textFormat: Text.RichText
isReplyLabel: true
HoverHandler{
enabled: !hoveredLink
cursorShape: Qt.PointingHandCursor
}
TapHandler {
enabled: !hoveredLink
acceptedButtons: Qt.LeftButton
onTapped: {
replyComponent.replyClicked()
}
}
}
}
Component {