UI: Replace SIGNAL and SLOT macros in about dialog
This commit is contained in:
parent
e8147a9abb
commit
24c97ed31b
1 changed files with 8 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue