diff --git a/src/gui_login.cpp b/src/gui_login.cpp index 545071b..7b6e4ea 100644 --- a/src/gui_login.cpp +++ b/src/gui_login.cpp @@ -9,9 +9,7 @@ #include #include #include -#include #include -#include #include GuiLogin::GuiLogin() @@ -103,16 +101,7 @@ void GuiLogin::Login(const std::string& username, const std::string& password) QWidget window; QVBoxLayout *layout = new QVBoxLayout; - QSize window_size(440, 540); - - window.setGeometry( - QStyle::alignedRect( - Qt::LeftToRight, - Qt::AlignCenter, - window_size, - qApp->desktop()->availableGeometry() - ) - ); + window.resize(440, 540); QWebEngineView *webengine = new QWebEngineView(&window); layout->addWidget(webengine);