nheko/resources/qml/TimelineView.qml

26 lines
382 B
QML
Raw Normal View History

2019-08-30 19:29:25 +02:00
import QtQuick 2.1
Rectangle {
anchors.fill: parent
Text {
2019-08-31 22:43:31 +02:00
visible: !timelineManager.timeline
2019-08-30 19:29:25 +02:00
anchors.centerIn: parent
text: qsTr("No room open")
font.pointSize: 24
}
2019-08-30 23:20:53 +02:00
ListView {
2019-08-31 22:43:31 +02:00
visible: timelineManager.timeline != null
2019-08-30 23:20:53 +02:00
anchors.fill: parent
2019-08-31 22:43:31 +02:00
id: chat
model: timelineManager.timeline
2019-08-30 23:20:53 +02:00
delegate: Text {
2019-08-31 22:43:31 +02:00
height: contentHeight
text: model.userId
2019-08-30 23:20:53 +02:00
}
2019-08-31 22:43:31 +02:00
}
2019-08-30 19:29:25 +02:00
}