Remove mouseArea from TimelineContainer
This was incorect (anchors in layout) and was replaced by TapHandler like the rest of the code was already using.
This commit is contained in:
@@ -24,7 +24,6 @@ Item {
|
|||||||
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
|
||||||
property bool cardBackground: true
|
property bool cardBackground: true
|
||||||
property bool isLoaded
|
property bool isLoaded
|
||||||
|
|||||||
@@ -346,11 +346,6 @@ Kirigami.ScrollablePage {
|
|||||||
width: messageListView.width - Kirigami.Units.largeSpacing
|
width: messageListView.width - Kirigami.Units.largeSpacing
|
||||||
isLoaded: timelineDelegateChooser.delegateLoaded
|
isLoaded: timelineDelegateChooser.delegateLoaded
|
||||||
isEmote: true
|
isEmote: true
|
||||||
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);
|
||||||
onEdit: chatBox.edit(message, formattedBody, eventId)
|
onEdit: chatBox.edit(message, formattedBody, eventId)
|
||||||
@@ -362,6 +357,14 @@ Kirigami.ScrollablePage {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.rightMargin: Kirigami.Units.largeSpacing
|
Layout.rightMargin: Kirigami.Units.largeSpacing
|
||||||
Layout.leftMargin: Kirigami.Units.largeSpacing
|
Layout.leftMargin: Kirigami.Units.largeSpacing
|
||||||
|
TapHandler {
|
||||||
|
acceptedButtons: Qt.RightButton
|
||||||
|
onTapped: openMessageContext(author, display, eventId, toolTip)
|
||||||
|
}
|
||||||
|
TapHandler {
|
||||||
|
acceptedButtons: Qt.LeftButton
|
||||||
|
onLongPressed: openMessageContext(author, display, eventId, toolTip)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user