EventDelegate context menu, EventFile click
Improve/extend choosing the cursor shape, how context menu handles the current hovered thing, and open link on EventFile click
This commit is contained in:
@@ -17,19 +17,14 @@ HImage {
|
||||
|
||||
|
||||
TapHandler {
|
||||
onTapped: if (! image.animated) Qt.openUrlExternally(image.fullSource)
|
||||
onDoubleTapped: Qt.openUrlExternally(image.fullSource)
|
||||
onTapped: if (! image.animated) Qt.openUrlExternally(fullSource)
|
||||
onDoubleTapped: Qt.openUrlExternally(fullSource)
|
||||
}
|
||||
|
||||
HoverHandler {
|
||||
id: hover
|
||||
onHoveredChanged:
|
||||
eventContent.hoveredImage = hovered ? image.fullSource : ""
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: image
|
||||
acceptedButtons: Qt.NoButton
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
eventDelegate.hoveredMediaTypeUrl =
|
||||
hovered ? [EventDelegate.Media.Image, fullSource] : []
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user