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"
|
2019-03-23 11:45:22 +11:00
|
|
|
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 {}
|
|
|
|
|
2019-03-22 21:24:19 +11:00
|
|
|
ListView {
|
2019-03-26 09:29:46 +11:00
|
|
|
Layout.fillWidth: true
|
|
|
|
Layout.fillHeight: true
|
|
|
|
|
2019-03-22 21:24:19 +11:00
|
|
|
id: roomListView
|
2019-03-26 09:29:46 +11:00
|
|
|
spacing: 0
|
2019-03-22 21:24:19 +11:00
|
|
|
model: Backend.roomsModel
|
|
|
|
delegate: RoomDelegate {}
|
|
|
|
//highlight: Rectangle {color: "lightsteelblue"; radius: 5}
|
2019-03-22 14:28:14 +11:00
|
|
|
|
2019-03-22 21:24:19 +11:00
|
|
|
section.property: "account_id"
|
|
|
|
section.delegate: AccountDelegate {}
|
|
|
|
}
|
2019-03-22 14:28:14 +11:00
|
|
|
}
|
|
|
|
}
|