mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Remove unused funtion
This commit is contained in:
parent
b706e272e5
commit
3c208cd717
2 changed files with 0 additions and 10 deletions
|
@ -9,7 +9,6 @@
|
||||||
#include <QDesktopServices>
|
#include <QDesktopServices>
|
||||||
#include <QStyle>
|
#include <QStyle>
|
||||||
#include <QUrl>
|
#include <QUrl>
|
||||||
#include <QWindow>
|
|
||||||
|
|
||||||
#include "Cache_p.h"
|
#include "Cache_p.h"
|
||||||
#include "ChatPage.h"
|
#include "ChatPage.h"
|
||||||
|
@ -135,9 +134,3 @@ Nheko::openCreateRoomDialog() const
|
||||||
MainWindow::instance()->openCreateRoomDialog(
|
MainWindow::instance()->openCreateRoomDialog(
|
||||||
[](const mtx::requests::CreateRoom &req) { ChatPage::instance()->createRoom(req); });
|
[](const mtx::requests::CreateRoom &req) { ChatPage::instance()->createRoom(req); });
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
|
||||||
Nheko::reparent(QWindow *win) const
|
|
||||||
{
|
|
||||||
win->setTransientParent(MainWindow::instance());
|
|
||||||
}
|
|
||||||
|
|
|
@ -12,8 +12,6 @@
|
||||||
#include "Theme.h"
|
#include "Theme.h"
|
||||||
#include "UserProfile.h"
|
#include "UserProfile.h"
|
||||||
|
|
||||||
class QWindow;
|
|
||||||
|
|
||||||
class Nheko : public QObject
|
class Nheko : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
@ -55,7 +53,6 @@ public:
|
||||||
Q_INVOKABLE void showUserSettingsPage() const;
|
Q_INVOKABLE void showUserSettingsPage() const;
|
||||||
Q_INVOKABLE void logout() const;
|
Q_INVOKABLE void logout() const;
|
||||||
Q_INVOKABLE void openCreateRoomDialog() const;
|
Q_INVOKABLE void openCreateRoomDialog() const;
|
||||||
Q_INVOKABLE void reparent(QWindow *win) const;
|
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void updateUserProfile();
|
void updateUserProfile();
|
||||||
|
|
Loading…
Reference in a new issue