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