From 1ba6785e463971a478938ba80f068cc2e0b2595b Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 22 Nov 2020 19:48:08 +0100 Subject: [PATCH] rbutil: Modernize connect() to new pointer-to-member syntax. Change-Id: I19f179907742092c970c27dd1bbf70f7e00fed76 --- rbutil/rbutilqt/sysinfo.cpp | 4 ++-- rbutil/rbutilqt/systrace.cpp | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) 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)