mirror of
https://github.com/YACReader/yacreader
synced 2025-07-18 13:04:28 -04:00
Clazy: Use fixits to refactor some old style signal connections
This commit is contained in:
@ -139,7 +139,7 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent)
|
||||
portWidget->setLayout(portWidgetLayout);
|
||||
portWidget->move(332, 244);
|
||||
//accept->move(514,149);
|
||||
connect(accept, SIGNAL(pressed()), this, SLOT(updatePort()));
|
||||
connect(accept, &QAbstractButton::pressed, this, &ServerConfigDialog::updatePort);
|
||||
//END FORM-----------------------------------------------------------------
|
||||
|
||||
check = new QCheckBox(this);
|
||||
@ -174,8 +174,8 @@ ServerConfigDialog::ServerConfigDialog(QWidget *parent)
|
||||
|
||||
settings->endGroup();
|
||||
|
||||
connect(check, SIGNAL(stateChanged(int)), this, SLOT(enableServer(int)));
|
||||
connect(performanceWorkaroundCheck, SIGNAL(stateChanged(int)), this, SLOT(enableperformanceWorkaround(int)));
|
||||
connect(check, &QCheckBox::stateChanged, this, &ServerConfigDialog::enableServer);
|
||||
connect(performanceWorkaroundCheck, &QCheckBox::stateChanged, this, &ServerConfigDialog::enableperformanceWorkaround);
|
||||
}
|
||||
|
||||
void ServerConfigDialog::enableServer(int status)
|
||||
|
Reference in New Issue
Block a user