rbutil: Modernize connect() to new pointer-to-member syntax.

Change-Id: I19f179907742092c970c27dd1bbf70f7e00fed76
This commit is contained in:
Dominik Riebeling 2020-11-22 19:48:08 +01:00
parent ec730f1609
commit 1ba6785e46
2 changed files with 6 additions and 6 deletions

View file

@ -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)

View file

@ -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)