diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-09-08 12:44:46 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-23 20:06:14 +0100 |
commit | 86f4119a0502ffefd60abd5963f0d52628ba4e78 (patch) | |
tree | 0dd0981909d302d6738a30ae8f89fcffe1e5940e /resources/qml/TimelineView.qml | |
parent | Implement avatars in qml timeline (diff) | |
download | nheko-86f4119a0502ffefd60abd5963f0d52628ba4e78.tar.xz |
Implement basic ImageMessages in qml timeline
I suck at sizing so the images in the message are currently hardcoded to 300 pixels in width...
Diffstat (limited to 'resources/qml/TimelineView.qml')
-rw-r--r-- | resources/qml/TimelineView.qml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index 0151686a..399e85eb 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -23,6 +23,8 @@ Rectangle { ListView { id: chat + cacheBuffer: 4*parent.height + visible: timelineManager.timeline != null anchors.fill: parent @@ -40,12 +42,14 @@ Rectangle { anchors.left: parent.left anchors.right: parent.right anchors.rightMargin: scrollbar.width + height: loader.height Loader { id: loader + asynchronous: false Layout.fillWidth: true - height: item.height Layout.alignment: Qt.AlignTop + height: item.height source: switch(model.type) { case MtxEvent.Aliases: return "delegates/Aliases.qml" |