Convert TimelineDelegate to cpp

There are 2 main reason for doing this:
1. Because I can, I wanted to see if I could do it
2. It gets rid of the janky qml re parenting stuff so should be faster.
This commit is contained in:
James Graham
2024-05-25 17:06:13 +00:00
parent a48151920d
commit 31f0e39617
12 changed files with 339 additions and 116 deletions

View File

@@ -44,7 +44,7 @@ QQC2.Control {
leftPadding: 0
rightPadding: 0
x: delegate ? delegate.contentX + delegate.bubbleX : 0
x: delegate ? delegate.contentItem.x + delegate.bubbleX : 0
y: delegate ? delegate.mapToItem(parent, 0, 0).y + delegate.bubbleY - height + Kirigami.Units.smallSpacing : 0
width: delegate ? delegate.bubbleWidth : Kirigami.Units.gridUnit * 4

View File

@@ -51,7 +51,7 @@ QQC2.ScrollView {
roleValue: MediaMessageFilterModel.Image
delegate: MessageDelegate {
alwaysShowAuthor: true
alwaysMaxWidth: true
alwaysFillWidth: true
cardBackground: false
room: root.currentRoom
}
@@ -61,7 +61,7 @@ QQC2.ScrollView {
roleValue: MediaMessageFilterModel.Video
delegate: MessageDelegate {
alwaysShowAuthor: true
alwaysMaxWidth: true
alwaysFillWidth: true
cardBackground: false
room: root.currentRoom
}