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