From 24c97ed31bbe8b4dfbb7278126e8f41fdd2da29c Mon Sep 17 00:00:00 2001 From: gxalpha Date: Fri, 17 Mar 2023 14:49:22 +0100 Subject: [PATCH] UI: Replace SIGNAL and SLOT macros in about dialog --- UI/window-basic-about.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/UI/window-basic-about.cpp b/UI/window-basic-about.cpp index 317d072b9..3000c8e91 100644 --- a/UI/window-basic-about.cpp +++ b/UI/window-basic-about.cpp @@ -61,9 +61,12 @@ OBSAbout::OBSAbout(QWidget *parent) : QDialog(parent), ui(new Ui::OBSAbout) ui->license->setProperty("themeID", "aboutHLayout"); ui->info->setProperty("themeID", "aboutInfo"); - connect(ui->about, SIGNAL(clicked()), this, SLOT(ShowAbout())); - connect(ui->authors, SIGNAL(clicked()), this, SLOT(ShowAuthors())); - connect(ui->license, SIGNAL(clicked()), this, SLOT(ShowLicense())); + connect(ui->about, &ClickableLabel::clicked, this, + &OBSAbout::ShowAbout); + connect(ui->authors, &ClickableLabel::clicked, this, + &OBSAbout::ShowAuthors); + connect(ui->license, &ClickableLabel::clicked, this, + &OBSAbout::ShowLicense); QPointer about(this); @@ -74,10 +77,8 @@ OBSAbout::OBSAbout(QWidget *parent) : QDialog(parent), ui(new Ui::OBSAbout) "application/json"); QObject::connect(thread, &RemoteTextThread::Result, main, &OBSBasic::UpdatePatronJson); - QObject::connect( - thread, - SIGNAL(Result(const QString &, const QString &)), this, - SLOT(ShowAbout())); + QObject::connect(thread, &RemoteTextThread::Result, this, + &OBSAbout::ShowAbout); main->patronJsonThread.reset(thread); thread->start(); } else {