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

30 lines
605 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
ListView {
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
}
}