diff --git a/rbutil/rbutilqt/sysinfo.cpp b/rbutil/rbutilqt/sysinfo.cpp index 9160ce9d9a..7d05bb8c9a 100644 --- a/rbutil/rbutilqt/sysinfo.cpp +++ b/rbutil/rbutilqt/sysinfo.cpp @@ -30,8 +30,8 @@ Sysinfo::Sysinfo(QWidget *parent) : QDialog(parent) ui.setupUi(this); updateSysinfo(); - connect(ui.buttonOk, SIGNAL(clicked()), this, SLOT(close())); - connect(ui.buttonRefresh, SIGNAL(clicked()), this, SLOT(updateSysinfo())); + connect(ui.buttonOk, &QAbstractButton::clicked, this, &Sysinfo::close); + connect(ui.buttonRefresh, &QAbstractButton::clicked, this, &Sysinfo::updateSysinfo); } void Sysinfo::updateSysinfo(void) diff --git a/rbutil/rbutilqt/systrace.cpp b/rbutil/rbutilqt/systrace.cpp index ba7f1e30e3..a20056b508 100644 --- a/rbutil/rbutilqt/systrace.cpp +++ b/rbutil/rbutilqt/systrace.cpp @@ -32,10 +32,10 @@ SysTrace::SysTrace(QWidget *parent) : QDialog(parent) ui.textTrace->setLayoutDirection(Qt::LeftToRight); refresh(); - connect(ui.buttonClose, SIGNAL(clicked()), this, SLOT(close())); - connect(ui.buttonSave, SIGNAL(clicked()), this, SLOT(saveCurrentTrace())); - connect(ui.buttonSavePrevious, SIGNAL(clicked()), this, SLOT(savePreviousTrace())); - connect(ui.buttonRefresh, SIGNAL(clicked()), this, SLOT(refresh())); + connect(ui.buttonClose, &QAbstractButton::clicked, this, &SysTrace::close); + connect(ui.buttonSave, &QAbstractButton::clicked, this, &SysTrace::saveCurrentTrace); + connect(ui.buttonSavePrevious, &QAbstractButton::clicked, this, &SysTrace::savePreviousTrace); + connect(ui.buttonRefresh, &QAbstractButton::clicked, this, &SysTrace::refresh); } void SysTrace::refresh(void)