Skip to content

Commit

Permalink
UI: Replace remaining SIGNAL/SLOT macros
Browse files Browse the repository at this point in the history
  • Loading branch information
gxalpha authored and RytoEX committed Aug 31, 2024
1 parent 296a2b8 commit 7b0e154
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions UI/auth-oauth.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions UI/window-basic-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7b0e154

Please sign in to comment.