moment/harmonyqml/components/Chat/RoomSidePane/MembersView.qml

30 lines
606 B
QML
Raw Normal View History

2019-05-13 03:17:42 +10:00
import QtQuick 2.7
import QtQuick.Layouts 1.3
import "../../Base"
HColumnLayout {
2019-05-13 03:17:42 +10:00
property int normalSpacing: 8
Layout.leftMargin: roomSidePane.collapsed ? 0 : normalSpacing
Layout.rightMargin: Layout.leftMargin
2019-05-13 03:17:42 +10:00
2019-05-14 03:15:03 +10:00
HListView {
2019-05-13 03:17:42 +10:00
id: memberList
spacing: parent.Layout.leftMargin
2019-05-13 03:17:42 +10:00
topMargin: spacing
bottomMargin: topMargin
Behavior on spacing {
NumberAnimation { duration: 120 }
2019-05-13 03:17:42 +10:00
}
model: chatPage.roomInfo.members
delegate: MemberDelegate {}
Layout.fillWidth: true
Layout.fillHeight: true
2019-05-13 03:17:42 +10:00
}
}