2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Use Window::Controller to manage MainWindow.

This commit is contained in:
John Preston
2019-06-06 14:20:21 +03:00
parent a547f80ae9
commit dd68c7e90d
18 changed files with 229 additions and 61 deletions

View File

@@ -193,7 +193,8 @@ quint32 djbStringHash(QString string) {
} // namespace
MainWindow::MainWindow() {
MainWindow::MainWindow(not_null<Window::Controller*> controller)
: Window::MainWindow(controller) {
connect(&_psCheckStatusIconTimer, SIGNAL(timeout()), this, SLOT(psStatusIconCheck()));
_psCheckStatusIconTimer.setSingleShot(false);

View File

@@ -15,7 +15,7 @@ class MainWindow : public Window::MainWindow {
Q_OBJECT
public:
MainWindow();
explicit MainWindow(not_null<Window::Controller*> controller);
void psFirstShow();
void psInitSysMenu();