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

@@ -7,7 +7,6 @@ qt_add_qml_module(timeline
OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/src/org/kde/neochat/timeline
QML_FILES
EventDelegate.qml
TimelineDelegate.qml
HiddenDelegate.qml
MessageDelegate.qml
LoadingDelegate.qml
@@ -45,6 +44,9 @@ qt_add_qml_module(timeline
StateComponent.qml
TextComponent.qml
VideoComponent.qml
SOURCES
timelinedelegate.cpp
timelinedelegate.h
RESOURCES
images/bike.svg
images/bus.svg
@@ -72,3 +74,8 @@ qt_add_qml_module(timeline
images/wait.svg
images/walk.svg
)
target_link_libraries(timeline PRIVATE
Qt::Quick
KF6::Kirigami
)