|
|
@ -8,22 +8,25 @@ import im.nheko 1.0 |
|
|
|
import "./delegates" |
|
|
|
import "./delegates" |
|
|
|
import "./emoji" |
|
|
|
import "./emoji" |
|
|
|
|
|
|
|
|
|
|
|
MouseArea { |
|
|
|
Item { |
|
|
|
anchors.left: parent.left |
|
|
|
anchors.left: parent.left |
|
|
|
anchors.right: parent.right |
|
|
|
anchors.right: parent.right |
|
|
|
height: row.height |
|
|
|
height: row.height |
|
|
|
propagateComposedEvents: true |
|
|
|
|
|
|
|
preventStealing: true |
|
|
|
MouseArea { |
|
|
|
hoverEnabled: true |
|
|
|
anchors.fill: parent |
|
|
|
|
|
|
|
propagateComposedEvents: true |
|
|
|
acceptedButtons: Qt.LeftButton | Qt.RightButton |
|
|
|
preventStealing: true |
|
|
|
onClicked: { |
|
|
|
hoverEnabled: true |
|
|
|
if (mouse.button === Qt.RightButton) |
|
|
|
|
|
|
|
messageContextMenu.show(model.id, model.type, model.isEncrypted, row) |
|
|
|
acceptedButtons: Qt.AllButtons |
|
|
|
} |
|
|
|
onClicked: { |
|
|
|
onPressAndHold: { |
|
|
|
if (mouse.button === Qt.RightButton) |
|
|
|
if (mouse.source === Qt.MouseEventNotSynthesized) |
|
|
|
messageContextMenu.show(model.id, model.type, model.isEncrypted, row) |
|
|
|
messageContextMenu.show(model.id, model.type, model.isEncrypted, row) |
|
|
|
} |
|
|
|
|
|
|
|
onPressAndHold: { |
|
|
|
|
|
|
|
messageContextMenu.show(model.id, model.type, model.isEncrypted, row, mapToItem(timelineRoot, mouse.x, mouse.y)) |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Rectangle { |
|
|
|
Rectangle { |
|
|
|
color: (settings.messageHoverHighlight && parent.containsMouse) ? colors.base : "transparent" |
|
|
|
color: (settings.messageHoverHighlight && parent.containsMouse) ? colors.base : "transparent" |
|
|
|