diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-07-28 21:31:37 -0400 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-07-29 21:07:52 -0400 |
commit | 7e538851d6e3779434722e56a968e9f8b8a9da0d (patch) | |
tree | 8147ac95a7e17b66c398cb3d09185d3194f5520b /src/timeline/TimelineViewManager.cpp | |
parent | Reset model instead of doing weird convoluted updates (diff) | |
download | nheko-7e538851d6e3779434722e56a968e9f8b8a9da0d.tar.xz |
Use a QSortFilterProxyModel instead of resetting the model
Diffstat (limited to '')
-rw-r--r-- | src/timeline/TimelineViewManager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/timeline/TimelineViewManager.cpp b/src/timeline/TimelineViewManager.cpp index 58b0d5a8..76bc127e 100644 --- a/src/timeline/TimelineViewManager.cpp +++ b/src/timeline/TimelineViewManager.cpp @@ -206,12 +206,12 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par 0, "InviteesModel", "InviteesModel needs to be instantiated on the C++ side"); - qmlRegisterUncreatableType<ReadReceiptsModel>( + qmlRegisterUncreatableType<ReadReceiptsProxy>( "im.nheko", 1, 0, - "ReadReceiptsModel", - "ReadReceiptsModel needs to be instantiated on the C++ side"); + "ReadReceiptsProxy", + "ReadReceiptsProxy needs to be instantiated on the C++ side"); static auto self = this; qmlRegisterSingletonType<MainWindow>( |