summaryrefslogtreecommitdiff
path: root/src/yuzu/debugger/profiler.cpp
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-01-18 20:03:13 -0500
committerLioncash <mathew1800@gmail.com>2018-01-18 20:09:40 -0500
commit5e46a9bb2b1f2d0f421e1d6f12b49cb34794d8df (patch)
treea2101a82095970dd41690a65d8a5c474d73ba81b /src/yuzu/debugger/profiler.cpp
parentcb3ab6ec77e20dc108147db662bf244448608275 (diff)
qt: Migrate to Qt 5 signal/slot connection syntax where applicable
Diffstat (limited to 'src/yuzu/debugger/profiler.cpp')
-rw-r--r--src/yuzu/debugger/profiler.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/yuzu/debugger/profiler.cpp b/src/yuzu/debugger/profiler.cpp
index cc9babe84..8b30e0a85 100644
--- a/src/yuzu/debugger/profiler.cpp
+++ b/src/yuzu/debugger/profiler.cpp
@@ -74,7 +74,7 @@ QAction* MicroProfileDialog::toggleViewAction() {
toggle_view_action = new QAction(windowTitle(), this);
toggle_view_action->setCheckable(true);
toggle_view_action->setChecked(isVisible());
- connect(toggle_view_action, SIGNAL(toggled(bool)), SLOT(setVisible(bool)));
+ connect(toggle_view_action, &QAction::toggled, this, &MicroProfileDialog::setVisible);
}
return toggle_view_action;
@@ -107,7 +107,8 @@ MicroProfileWidget::MicroProfileWidget(QWidget* parent) : QWidget(parent) {
MicroProfileSetDisplayMode(1); // Timers screen
MicroProfileInitUI();
- connect(&update_timer, SIGNAL(timeout()), SLOT(update()));
+ connect(&update_timer, &QTimer::timeout, this,
+ static_cast<void (MicroProfileWidget::*)()>(&MicroProfileWidget::update));
}
void MicroProfileWidget::paintEvent(QPaintEvent* ev) {