5ab13e3e16
- Simplify SortProxyFilter - Better custom filtering algorithm - Rename "ascending" (default True) to "reverse" (default False) - Add "Filter members" field to RoomSidePane MembersView
42 lines
1022 B
QML
42 lines
1022 B
QML
import QtQuick 2.7
|
|
import QtQuick.Layouts 1.3
|
|
import "../../Base"
|
|
|
|
HColumnLayout {
|
|
property int normalSpacing: 8
|
|
|
|
HListView {
|
|
id: memberList
|
|
|
|
spacing: normalSpacing
|
|
topMargin: spacing
|
|
bottomMargin: topMargin
|
|
Layout.leftMargin: roomSidePane.collapsed ? 0 : normalSpacing
|
|
Layout.rightMargin: Layout.leftMargin
|
|
|
|
Behavior on spacing {
|
|
NumberAnimation { duration: HStyle.animationDuration }
|
|
}
|
|
|
|
model: chatPage.roomInfo.sortedMembers
|
|
delegate: MemberDelegate {}
|
|
|
|
Layout.fillWidth: true
|
|
Layout.fillHeight: true
|
|
|
|
}
|
|
|
|
HTextField {
|
|
id: filterField
|
|
placeholderText: qsTr("Filter members")
|
|
backgroundColor: HStyle.sidePane.filterRooms.background
|
|
|
|
onTextChanged: Backend.clients.get(chatPage.userId).setMemberFilter(
|
|
chatPage.category, chatPage.roomId, text
|
|
)
|
|
|
|
Layout.fillWidth: true
|
|
Layout.preferredHeight: HStyle.bottomElementsHeight
|
|
}
|
|
}
|