mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-01 15:49:51 +08:00
UI: Replace remaining SIGNAL/SLOT macros
This commit is contained in:
+4
-4
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user