From b3fb5fe1ceb1745311e9a248dfcb3dfacb6d3da2 Mon Sep 17 00:00:00 2001 From: RickyRister Date: Sun, 5 Jan 2025 21:47:07 -0800 Subject: [PATCH] update remaining --- cockatrice/src/client/ui/window_main.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cockatrice/src/client/ui/window_main.cpp b/cockatrice/src/client/ui/window_main.cpp index 35d6e68fa..3e868a286 100644 --- a/cockatrice/src/client/ui/window_main.cpp +++ b/cockatrice/src/client/ui/window_main.cpp @@ -193,7 +193,7 @@ void MainWindow::activateAccepted() void MainWindow::actConnect() { dlgConnect = new DlgConnect(this); - connect(dlgConnect, SIGNAL(sigStartForgotPasswordRequest()), this, &MainWindow::actForgotPasswordRequest); + connect(dlgConnect, &DlgConnect::sigStartForgotPasswordRequest, this, &MainWindow::actForgotPasswordRequest); if (dlgConnect->exec()) { client->connectToServer(dlgConnect->getHost(), static_cast(dlgConnect->getPort()), @@ -717,7 +717,7 @@ void MainWindow::createActions() connect(aVisualDeckStorage, &QAction::triggered, this, &MainWindow::actVisualDeckStorage); aFullScreen = new QAction(this); aFullScreen->setCheckable(true); - connect(aFullScreen, SIGNAL(toggled(bool)), this, SLOT(actFullScreen(bool))); + connect(aFullScreen, &QAction::toggled, this, &MainWindow::actFullScreen); aRegister = new QAction(this); connect(aRegister, &QAction::triggered, this, &MainWindow::actRegister); aForgotPassword = new QAction(this); @@ -1157,8 +1157,7 @@ void MainWindow::actCheckCardUpdates() connect(cardUpdateProcess, &QProcess::errorOccurred, this, &MainWindow::cardUpdateError); - connect(cardUpdateProcess, SIGNAL(finished(int, QProcess::ExitStatus)), this, - SLOT(cardUpdateFinished(int, QProcess::ExitStatus))); + connect(cardUpdateProcess, &QProcess::finished, this, &MainWindow::cardUpdateFinished); // full "run the update" command; leave empty if not present QString updaterCmd;