- connect(enabledBox, SIGNAL(toggled(bool)), SLOT(widgetChanged()));
- connect(enabledBox, SIGNAL(toggled(bool)), timeoutBox, SLOT(setEnabled(bool)));
- connect(timeoutBox, SIGNAL(valueChanged(int)), SLOT(widgetChanged()));
+ connect(enabledBox, &QAbstractButton::toggled, this, &ConfigWidget::widgetChanged);
+ connect(enabledBox, &QAbstractButton::toggled, timeoutBox, &QWidget::setEnabled);
+ connect(timeoutBox, selectOverload<int>(&QSpinBox::valueChanged), this, &ConfigWidget::widgetChanged);