Revert "Port timeline mouseare to tap handler"
This reverts commit d63811471c.
This commit is contained in:
@@ -26,13 +26,13 @@ RowLayout {
|
|||||||
readonly property color authorColor: eventType == "notice" ? Kirigami.Theme.activeTextColor : author.color
|
readonly property color authorColor: eventType == "notice" ? Kirigami.Theme.activeTextColor : author.color
|
||||||
readonly property color replyAuthorColor: replyVisible ? reply.author.color : Kirigami.Theme.focusColor
|
readonly property color replyAuthorColor: replyVisible ? reply.author.color : Kirigami.Theme.focusColor
|
||||||
|
|
||||||
|
property alias mouseArea: controlContainer.children
|
||||||
property bool isEmote: false
|
property bool isEmote: false
|
||||||
|
|
||||||
signal saveFileAs()
|
signal saveFileAs()
|
||||||
signal openExternally()
|
signal openExternally()
|
||||||
signal replyClicked(string eventID)
|
signal replyClicked(string eventID)
|
||||||
signal replyToMessageClicked(var replyUser, string replyContent, string eventID)
|
signal replyToMessageClicked(var replyUser, string replyContent, string eventID)
|
||||||
signal openContextMenu()
|
|
||||||
|
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
@@ -80,11 +80,6 @@ RowLayout {
|
|||||||
topPadding: 0
|
topPadding: 0
|
||||||
bottomPadding: 0
|
bottomPadding: 0
|
||||||
hoverEnabled: true
|
hoverEnabled: true
|
||||||
TapHandler {
|
|
||||||
acceptedButtons: (Kirigami.Settings.isMobile ? Qt.LeftButton : 0) | Qt.RightButton
|
|
||||||
onTapped: openContextMenu()
|
|
||||||
onLongPressed: openContextMenu()
|
|
||||||
}
|
|
||||||
contentItem: ColumnLayout {
|
contentItem: ColumnLayout {
|
||||||
id: column
|
id: column
|
||||||
spacing: showAuthor ? Kirigami.Units.smallSpacing : 0
|
spacing: showAuthor ? Kirigami.Units.smallSpacing : 0
|
||||||
|
|||||||
@@ -250,7 +250,11 @@ Kirigami.ScrollablePage {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: messageListView.width
|
Layout.maximumWidth: messageListView.width
|
||||||
isEmote: true
|
isEmote: true
|
||||||
onOpenContextMenu: openMessageContext(author, display, eventId, toolTip)
|
mouseArea: MouseArea {
|
||||||
|
acceptedButtons: Qt.RightButton
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: openMessageContext(author, display, eventId, toolTip);
|
||||||
|
}
|
||||||
onReplyClicked: goToEvent(eventID)
|
onReplyClicked: goToEvent(eventID)
|
||||||
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
|
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
|
||||||
innerObject: [
|
innerObject: [
|
||||||
@@ -276,7 +280,16 @@ Kirigami.ScrollablePage {
|
|||||||
innerObject: MessageDelegate {
|
innerObject: MessageDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.maximumWidth: messageListView.width
|
Layout.maximumWidth: messageListView.width
|
||||||
onOpenContextMenu: openMessageContext(author, display, eventId, toolTip)
|
mouseArea: MouseArea {
|
||||||
|
acceptedButtons: (Kirigami.Settings.isMobile ? Qt.LeftButton : 0) | Qt.RightButton
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: {
|
||||||
|
if (mouse.button == Qt.RightButton) {
|
||||||
|
openMessageContext(author, display, eventId, toolTip);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
onPressAndHold: openMessageContext(author, display, eventId, toolTip);
|
||||||
|
}
|
||||||
onReplyClicked: goToEvent(eventID)
|
onReplyClicked: goToEvent(eventID)
|
||||||
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
|
onReplyToMessageClicked: replyToMessage(replyUser, replyContent, eventId);
|
||||||
innerObject: [
|
innerObject: [
|
||||||
|
|||||||
Reference in New Issue
Block a user