2019-03-26 03:19:55 -04:00
|
|
|
import QtQuick 2.7
|
|
|
|
import QtQuick.Controls 2.2
|
|
|
|
import QtQuick.Layouts 1.4
|
2019-03-26 05:52:43 -04:00
|
|
|
import "../base" as Base
|
2019-03-26 03:19:55 -04:00
|
|
|
|
|
|
|
ListView {
|
2019-04-20 17:36:21 -04:00
|
|
|
property var forUserId: null
|
2019-03-26 03:19:55 -04:00
|
|
|
|
2019-04-13 08:59:10 -04:00
|
|
|
property int childrenHeight: 36
|
2019-03-26 03:19:55 -04:00
|
|
|
property int contentHeight: 0
|
|
|
|
|
|
|
|
onCountChanged: {
|
2019-04-13 08:59:10 -04:00
|
|
|
contentHeight = childrenHeight * model.count +
|
|
|
|
spacing * (model.count - 1)
|
2019-03-26 03:19:55 -04:00
|
|
|
}
|
|
|
|
|
2019-04-20 17:45:51 -04:00
|
|
|
id: roomList
|
2019-03-26 03:19:55 -04:00
|
|
|
spacing: 8
|
2019-04-20 17:36:21 -04:00
|
|
|
model: Backend.models.rooms.get(forUserId)
|
2019-03-26 03:19:55 -04:00
|
|
|
delegate: RoomDelegate {}
|
|
|
|
}
|