QML the join room dialog
This commit is contained in:
parent
7eb9071b50
commit
e9ed12e27b
10 changed files with 92 additions and 144 deletions
|
|
@ -21,6 +21,7 @@ Nheko::Nheko()
|
|||
connect(
|
||||
UserSettings::instance().get(), &UserSettings::themeChanged, this, &Nheko::colorsChanged);
|
||||
connect(ChatPage::instance(), &ChatPage::contentLoaded, this, &Nheko::updateUserProfile);
|
||||
connect(this, &Nheko::joinRoom, ChatPage::instance(), &ChatPage::joinRoom);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
@ -96,13 +97,6 @@ Nheko::openCreateRoomDialog() const
|
|||
[](const mtx::requests::CreateRoom &req) { ChatPage::instance()->createRoom(req); });
|
||||
}
|
||||
|
||||
void
|
||||
Nheko::openJoinRoomDialog() const
|
||||
{
|
||||
MainWindow::instance()->openJoinRoomDialog(
|
||||
[](const QString &room_id) { ChatPage::instance()->joinRoom(room_id); });
|
||||
}
|
||||
|
||||
void
|
||||
Nheko::reparent(QWindow *win) const
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue