summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-22 19:48:08 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-11-23 20:44:46 +0100
commit1ba6785e463971a478938ba80f068cc2e0b2595b (patch)
tree17e72ca4d12e850988bdbe90b86058376ff25d67
parentec730f1609181a7fbf907f9e57380b2695ed6cbb (diff)
downloadrockbox-1ba6785e463971a478938ba80f068cc2e0b2595b.tar.gz
rockbox-1ba6785e463971a478938ba80f068cc2e0b2595b.tar.bz2
rockbox-1ba6785e463971a478938ba80f068cc2e0b2595b.zip
rbutil: Modernize connect() to new pointer-to-member syntax.
Change-Id: I19f179907742092c970c27dd1bbf70f7e00fed76
-rw-r--r--rbutil/rbutilqt/sysinfo.cpp4
-rw-r--r--rbutil/rbutilqt/systrace.cpp8
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)