moment/harmonyqml/RoomPane.qml

31 lines
683 B
QML
Raw Normal View History

2019-03-22 14:28:14 +11:00
import QtQuick 2.7
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.4
Rectangle {
id: roomPane
color: "gray"
clip: true // Avoid artifacts when resizing pane width to minimum
2019-03-22 14:28:14 +11:00
2019-03-26 09:29:46 +11:00
ColumnLayout {
anchors.fill: parent
spacing: 0
TopBar {}
ListView {
2019-03-26 09:29:46 +11:00
Layout.fillWidth: true
Layout.fillHeight: true
id: roomListView
2019-03-26 09:29:46 +11:00
spacing: 0
model: Backend.roomsModel
delegate: RoomDelegate {}
//highlight: Rectangle {color: "lightsteelblue"; radius: 5}
2019-03-22 14:28:14 +11:00
section.property: "account_id"
section.delegate: AccountDelegate {}
}
2019-03-22 14:28:14 +11:00
}
}