From 1176cf029b292bf7939b61694030f528ccb2d434 Mon Sep 17 00:00:00 2001 From: James Graham Date: Tue, 13 Dec 2022 19:59:33 +0000 Subject: [PATCH] Now allow links to be clicked in replies --- src/qml/Component/Timeline/ReplyComponent.qml | 27 ++++++++++++++----- 1 file changed, 20 insertions(+), 7 deletions(-) diff --git a/src/qml/Component/Timeline/ReplyComponent.qml b/src/qml/Component/Timeline/ReplyComponent.qml index 58876e28e..87134172f 100644 --- a/src/qml/Component/Timeline/ReplyComponent.qml +++ b/src/qml/Component/Timeline/ReplyComponent.qml @@ -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 {