@@ -36,7 +36,7 @@ MainWindow::MainWindow(QWidget *parent) :
3636 _exceptionGroup.addButton (_pUi->chkTargetNoResponse , QModbusPdu::GatewayTargetDeviceFailedToRespond);
3737 _exceptionGroup.addButton (_pUi->chkGatewayPathUnavailable , QModbusPdu::GatewayPathUnavailable);
3838
39- connect (&_exceptionGroup, QOverload<int , bool >::of (&QButtonGroup::buttonToggled) ,
39+ connect (&_exceptionGroup, QOverload<int , bool >::of (&QButtonGroup::idToggled), this ,
4040 [=](int id, bool checked){
4141 if (checked)
4242 {
@@ -49,7 +49,7 @@ MainWindow::MainWindow(QWidget *parent) :
4949 _errorRecurrenceGroup.addButton (_pUi->optErrorOnce , true );
5050 _errorRecurrenceGroup.addButton (_pUi->optErrorPersistent , false );
5151
52- connect (&_errorRecurrenceGroup, QOverload<int >::of (&QButtonGroup::buttonClicked) ,
52+ connect (&_errorRecurrenceGroup, QOverload<int >::of (&QButtonGroup::idClicked), this ,
5353 [=](int id){
5454 _bErrorOnce = static_cast <bool >(id);
5555 });
@@ -60,7 +60,7 @@ MainWindow::MainWindow(QWidget *parent) :
6060 connect (&_autoIncTimer, &QTimer::timeout, this , &MainWindow::handleAutoIncTick);
6161 _autoIncTimer.start (1000 );
6262 _bAutoInc = false ;
63- connect (_pUi->checkAutoIncrement , &QCheckBox::stateChanged,
63+ connect (_pUi->checkAutoIncrement , &QCheckBox::stateChanged, this ,
6464 [=](int state){
6565 _bAutoInc = (state == Qt::Checked);
6666 });
@@ -151,6 +151,6 @@ void MainWindow::handleRequestProcessed()
151151{
152152 if (_bErrorOnce)
153153 {
154- _pUi->chkNone ->animateClick (Qt::Checked );
154+ _pUi->chkNone ->click ( );
155155 }
156156}
0 commit comments