2020-07-15 21:04:14 +00:00
|
|
|
import QtQuick 2.3
|
|
|
|
import "../../../../../shared"
|
|
|
|
import "../../../../../imports"
|
|
|
|
|
|
|
|
MouseArea {
|
2020-07-20 21:59:01 +00:00
|
|
|
cursorShape: chatText.hoveredLink ? Qt.PointingHandCursor : undefined
|
2020-09-12 18:22:07 +00:00
|
|
|
acceptedButtons: Qt.RightButton | Qt.LeftButton
|
2020-07-20 21:59:01 +00:00
|
|
|
z: 50
|
2020-07-15 21:04:14 +00:00
|
|
|
onClicked: {
|
|
|
|
if(mouse.button & Qt.RightButton) {
|
2020-09-12 18:22:07 +00:00
|
|
|
clickMessage(false, isSticker, false);
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
if (mouse.button & Qt.LeftButton) {
|
|
|
|
if (isImage && !isSticker)
|
|
|
|
clickMessage(false, false, isImage, image);
|
2020-07-15 21:04:14 +00:00
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|