|
|
@ -59,6 +59,7 @@ AbstractButton { |
|
|
|
acceptedButtons: Qt.RightButton |
|
|
|
acceptedButtons: Qt.RightButton |
|
|
|
onSingleTapped: messageContextMenu.show(eventId, type, isSender, isEncrypted, isEditable, contentItem.child.hoveredLink, contentItem.child.copyText) |
|
|
|
onSingleTapped: messageContextMenu.show(eventId, type, isSender, isEncrypted, isEditable, contentItem.child.hoveredLink, contentItem.child.copyText) |
|
|
|
gesturePolicy: TapHandler.ReleaseWithinBounds |
|
|
|
gesturePolicy: TapHandler.ReleaseWithinBounds |
|
|
|
|
|
|
|
acceptedDevices: PointerDevice.Mouse | PointerDevice.Stylus | PointerDevice.TouchPad |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -92,6 +93,13 @@ AbstractButton { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
onClicked: { |
|
|
|
|
|
|
|
let link = contentItem.child.linkAt != undefined && contentItem.child.linkAt(pressX-row.x-msg.x, pressY-row.y-msg.y-contentItem.y); |
|
|
|
|
|
|
|
if (link) { |
|
|
|
|
|
|
|
Nheko.openLink(link) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Rectangle { |
|
|
|
Rectangle { |
|
|
|
id: row |
|
|
|
id: row |
|
|
|
property bool bubbleOnRight : isSender && Settings.bubbles |
|
|
|
property bool bubbleOnRight : isSender && Settings.bubbles |
|
|
|