|
|
@ -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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
MouseArea { |
|
|
|
|
|
|
|
anchors.fill: parent |
|
|
|
propagateComposedEvents: true |
|
|
|
propagateComposedEvents: true |
|
|
|
preventStealing: true |
|
|
|
preventStealing: true |
|
|
|
hoverEnabled: true |
|
|
|
hoverEnabled: true |
|
|
|
|
|
|
|
|
|
|
|
acceptedButtons: Qt.LeftButton | Qt.RightButton |
|
|
|
acceptedButtons: Qt.AllButtons |
|
|
|
onClicked: { |
|
|
|
onClicked: { |
|
|
|
if (mouse.button === Qt.RightButton) |
|
|
|
if (mouse.button === Qt.RightButton) |
|
|
|
messageContextMenu.show(model.id, model.type, model.isEncrypted, row) |
|
|
|
messageContextMenu.show(model.id, model.type, model.isEncrypted, row) |
|
|
|
} |
|
|
|
} |
|
|
|
onPressAndHold: { |
|
|
|
onPressAndHold: { |
|
|
|
if (mouse.source === Qt.MouseEventNotSynthesized) |
|
|
|
messageContextMenu.show(model.id, model.type, model.isEncrypted, row, mapToItem(timelineRoot, mouse.x, mouse.y)) |
|
|
|
messageContextMenu.show(model.id, model.type, model.isEncrypted, row) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Rectangle { |
|
|
|
Rectangle { |
|
|
|
color: (settings.messageHoverHighlight && parent.containsMouse) ? colors.base : "transparent" |
|
|
|
color: (settings.messageHoverHighlight && parent.containsMouse) ? colors.base : "transparent" |
|
|
|