Improve SortProxyFilter, room members filtering
- Simplify SortProxyFilter - Better custom filtering algorithm - Rename "ascending" (default True) to "reverse" (default False) - Add "Filter members" field to RoomSidePane MembersView
This commit is contained in:
@@ -5,15 +5,14 @@ import "../../Base"
|
||||
HColumnLayout {
|
||||
property int normalSpacing: 8
|
||||
|
||||
Layout.leftMargin: roomSidePane.collapsed ? 0 : normalSpacing
|
||||
Layout.rightMargin: Layout.leftMargin
|
||||
|
||||
HListView {
|
||||
id: memberList
|
||||
|
||||
spacing: parent.Layout.leftMargin
|
||||
spacing: normalSpacing
|
||||
topMargin: spacing
|
||||
bottomMargin: topMargin
|
||||
Layout.leftMargin: roomSidePane.collapsed ? 0 : normalSpacing
|
||||
Layout.rightMargin: Layout.leftMargin
|
||||
|
||||
Behavior on spacing {
|
||||
NumberAnimation { duration: HStyle.animationDuration }
|
||||
@@ -26,4 +25,17 @@ HColumnLayout {
|
||||
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
|
||||
}
|
||||
}
|
||||
|
@@ -73,7 +73,7 @@ Item {
|
||||
if (pageStack.initialPageSet) { return }
|
||||
pageStack.initialPageSet = true
|
||||
showPage(accountsLoggedIn ? "Default" : "SignIn")
|
||||
//if (accountsLoggedIn) { initialRoomTimer.start() }
|
||||
if (accountsLoggedIn) { initialRoomTimer.start() }
|
||||
}
|
||||
|
||||
Timer {
|
||||
|
Reference in New Issue
Block a user