diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-08-31 22:43:31 +0200 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2019-11-23 20:06:14 +0100 |
commit | 47fbfd3f44154faf796c0be47dddfcba1b509a12 (patch) | |
tree | 0c05744b0828b8d46386a3c3b33293c285c52568 /resources | |
parent | 8b5c7b2f2fb43b4f1884e683d60dd2553b9aa994 (diff) |
Add items to timline
Diffstat (limited to 'resources')
-rw-r--r-- | resources/qml/TimelineView.qml | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/resources/qml/TimelineView.qml b/resources/qml/TimelineView.qml index a53c8a94..fcf88167 100644 --- a/resources/qml/TimelineView.qml +++ b/resources/qml/TimelineView.qml @@ -4,19 +4,28 @@ Rectangle { anchors.fill: parent Text { - visible: !timeline + visible: !timelineManager.timeline anchors.centerIn: parent text: qsTr("No room open") font.pointSize: 24 } + Text { + visible: timelineManager.timeline != null + anchors.centerIn: parent + text: qsTr("room open") + font.pointSize: 24 + } ListView { - visible: timeline != undefined + visible: timelineManager.timeline != null anchors.fill: parent - model: timeline + id: chat + + model: timelineManager.timeline delegate: Text { - text: userId + height: contentHeight + text: model.userId } - } + } } |