UI: Replace remaining SIGNAL/SLOT macros

This commit is contained in:
gxalpha
2024-08-29 19:52:23 +02:00
committed by Ryan Foster
parent 296a2b8631
commit 7b0e154245
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -51,10 +51,10 @@ OAuthLogin::OAuthLogin(QWidget *parent, const std::string &url, bool token)
return;
}
connect(cefWidget, SIGNAL(titleChanged(const QString &)), this,
SLOT(setWindowTitle(const QString &)));
connect(cefWidget, SIGNAL(urlChanged(const QString &)), this,
SLOT(urlChanged(const QString &)));
connect(cefWidget, &QCefWidget::titleChanged, this,
&OAuthLogin::setWindowTitle);
connect(cefWidget, &QCefWidget::urlChanged, this,
&OAuthLogin::urlChanged);
QPushButton *close = new QPushButton(QTStr("Cancel"));
connect(close, &QAbstractButton::clicked, this, &QDialog::reject);
+2 -2
View File
@@ -2836,8 +2836,8 @@ void OBSBasic::ShowWhatsNew(const QString &url)
return;
}
connect(cefWidget, SIGNAL(titleChanged(const QString &)), dlg,
SLOT(setWindowTitle(const QString &)));
connect(cefWidget, &QCefWidget::titleChanged, dlg,
&QDialog::setWindowTitle);
QPushButton *close = new QPushButton(QTStr("Close"));
connect(close, &QAbstractButton::clicked, dlg, &QDialog::accept);