Enable toggling tags
This commit is contained in:
parent
d8c0d4874b
commit
8d2d8dc267
8 changed files with 73 additions and 15 deletions
|
|
@ -195,7 +195,13 @@ TimelineViewManager::TimelineViewManager(CallManager *callManager, ChatPage *par
|
|||
});
|
||||
qmlRegisterSingletonType<RoomlistModel>(
|
||||
"im.nheko", 1, 0, "Rooms", [](QQmlEngine *, QJSEngine *) -> QObject * {
|
||||
return new FilteredRoomlistModel(self->rooms_);
|
||||
auto ptr = new FilteredRoomlistModel(self->rooms_);
|
||||
|
||||
connect(self->communities_,
|
||||
&CommunitiesModel::currentTagIdChanged,
|
||||
ptr,
|
||||
&FilteredRoomlistModel::updateFilterTag);
|
||||
return ptr;
|
||||
});
|
||||
qmlRegisterSingletonType<RoomlistModel>(
|
||||
"im.nheko", 1, 0, "Communities", [](QQmlEngine *, QJSEngine *) -> QObject * {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue