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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user