jreojreojr
This commit is contained in:
committed by
James Graham
parent
551092a1b4
commit
2a735ff1cc
@@ -182,6 +182,12 @@ QQC2.ScrollView {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Component.onCompleted: {
|
||||||
|
headerItem.userListSearchField.KeyNavigation.tab = Qt.binding(() => {
|
||||||
|
return userList.count > 0 ? userList.itemAtIndex(userList.currentIndex !== -1 ? userList.currentIndex : 0) : null
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
KSortFilterProxyModel {
|
KSortFilterProxyModel {
|
||||||
id: sortedMessageEventModel
|
id: sortedMessageEventModel
|
||||||
|
|
||||||
@@ -265,8 +271,8 @@ QQC2.ScrollView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
onRoomChanged: {
|
onRoomChanged: {
|
||||||
if (root.headerItem) {
|
if (userList.headerItem) {
|
||||||
root.headerItem.userListSearchField.text = "";
|
userList.headerItem.userListSearchField.text = "";
|
||||||
}
|
}
|
||||||
userList.currentIndex = -1;
|
userList.currentIndex = -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user