Fix clicking on room in filtered list

This commit is contained in:
miruka 2020-05-01 04:56:03 -04:00
parent 37042f6365
commit 7042df003f
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
# TODO # TODO
- account context menu
- add account number binds - add account number binds
- rename goto*account → scrollto*account - rename goto*account → scrollto*account

View File

@ -2,6 +2,7 @@
import QtQuick 2.12 import QtQuick 2.12
import QtQuick.Layouts 1.12 import QtQuick.Layouts 1.12
import QtQml.Models 2.12
import ".." import ".."
import "../Base" import "../Base"
@ -17,7 +18,7 @@ HListView {
delegate: Room { delegate: Room {
id: room id: room
width: roomList.width width: roomList.width
onActivated: showRoomAtIndex(model.index) onActivated: showRoomAtIndex(DelegateModel.filteredIndex)
ListView.onAdd: ParallelAnimation { ListView.onAdd: ParallelAnimation {
HNumberAnimation { HNumberAnimation {
target: room; property: "opacity"; from: 0; to: 1; target: room; property: "opacity"; from: 0; to: 1;