Fix links now working anymore and simplify code
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user