Fix links now working anymore and simplify code

This commit is contained in:
Carl Schwan
2021-06-22 10:14:53 +02:00
parent f2215f10e2
commit b1d8956036

View File

@@ -62,13 +62,12 @@ a{
applicationWindow().hoverLinkIndicator.text = ""; applicationWindow().hoverLinkIndicator.text = "";
} }
MouseArea { HoverHandler {
anchors.fill: parent
acceptedButtons: spoilerRevealed ? Qt.NoButton : Qt.LeftButton
cursorShape: (parent.hoveredLink || !spoilerRevealed) ? Qt.PointingHandCursor : Qt.IBeamCursor cursorShape: (parent.hoveredLink || !spoilerRevealed) ? Qt.PointingHandCursor : Qt.IBeamCursor
}
TapHandler { TapHandler {
onTapped: spoilerRevealed = true enabled: !parent.hoveredLink && !spoilerRevealed
} onTapped: spoilerRevealed = true
} }
} }