Clicking on an reply move the timeline view to the reply

This commit is contained in:
Carl Schwan
2020-11-22 17:54:34 +01:00
parent 7ec6f83bcb
commit 4dedb87efa
3 changed files with 45 additions and 34 deletions

View File

@@ -30,6 +30,7 @@ RowLayout {
signal saveFileAs()
signal openExternally()
signal replyClicked(string eventID)
id: root
@@ -90,9 +91,14 @@ RowLayout {
wrapMode: Text.Wrap
}
Loader {
id: replyLoader
source: 'qrc:imports/NeoChat/Component/Timeline/ReplyComponent.qml'
active: replyVisible
}
Connections {
target: replyLoader.item
onClicked: replyClicked(reply.eventId)
}
}
}
}