Merge pull request #743 from LorenDB/qmlLogout

QML the logout dialog
This commit is contained in:
DeepBlueV7.X 2021-10-09 20:57:38 +00:00 committed by GitHub
commit 7eb9071b50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 42 additions and 23 deletions

View file

@ -14,6 +14,7 @@
#include "MainWindow.h"
#include "UserSettingsPage.h"
#include "Utils.h"
#include "WebRTCSession.h"
Nheko::Nheko()
{
@ -83,9 +84,9 @@ Nheko::showUserSettingsPage() const
}
void
Nheko::openLogoutDialog() const
Nheko::logout() const
{
MainWindow::instance()->openLogoutDialog();
ChatPage::instance()->initiateLogout();
}
void

View file

@ -48,7 +48,7 @@ public:
Q_INVOKABLE void openLink(QString link) const;
Q_INVOKABLE void setStatusMessage(QString msg) const;
Q_INVOKABLE void showUserSettingsPage() const;
Q_INVOKABLE void openLogoutDialog() const;
Q_INVOKABLE void logout() const;
Q_INVOKABLE void openCreateRoomDialog() const;
Q_INVOKABLE void openJoinRoomDialog() const;
Q_INVOKABLE void reparent(QWindow *win) const;
@ -60,6 +60,8 @@ signals:
void colorsChanged();
void profileChanged();
void openLogoutDialog();
private:
QScopedPointer<UserProfile> currentUser_;
};