UI: Replace SIGNAL and SLOT macros in about dialog

This commit is contained in:
gxalpha
2023-03-17 14:49:22 +01:00
parent e8147a9abb
commit 24c97ed31b

View File

@@ -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<OBSAbout> 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 {