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
|
|
|
|
Layout.preferredWidth: 150
|
|
|
|
Layout.fillHeight: true
|
|
|
|
color: "gray"
|
|
|
|
|
2019-03-22 21:24:19 +11:00
|
|
|
Column {
|
2019-03-22 14:28:14 +11:00
|
|
|
anchors.fill: parent
|
2019-03-22 21:24:19 +11:00
|
|
|
ListView {
|
|
|
|
width: parent.width
|
|
|
|
height: parent.height - actionBar.height
|
|
|
|
id: roomListView
|
|
|
|
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 {}
|
|
|
|
}
|
|
|
|
|
|
|
|
ActionBar { id: "actionBar" }
|
2019-03-22 14:28:14 +11:00
|
|
|
}
|
|
|
|
}
|