cccc43a9ae
- Accordion design for accounts and rooms (not finished) - Toolbar and account/room lists reduce correctly, buttons become hamburger menu if not enough width - Can set status using the "Set status message" account fields - Uniformized avatar sizes for sidePane, roomHeader and SendBox
26 lines
547 B
QML
26 lines
547 B
QML
import QtQuick 2.7
|
|
import QtQuick.Controls 2.2
|
|
import QtQuick.Layouts 1.4
|
|
|
|
ListView {
|
|
property var user: null
|
|
|
|
property int contentHeight: 0
|
|
|
|
onCountChanged: {
|
|
var children = roomList.children
|
|
var childrenHeight = 0
|
|
|
|
for (var i = 0; i < children.length; i++) {
|
|
childrenHeight += children[i].height
|
|
}
|
|
|
|
contentHeight = childrenHeight + spacing * (children.length - 1)
|
|
}
|
|
|
|
id: "roomList"
|
|
spacing: 8
|
|
model: Backend.roomsModel[user.user_id]
|
|
delegate: RoomDelegate {}
|
|
}
|