aboutsummaryrefslogtreecommitdiff
path: root/launcher/tools/JProfiler.cpp
diff options
context:
space:
mode:
authorTrial97 <alexandru.tripon97@gmail.com>2023-05-14 14:20:24 +0300
committerTrial97 <alexandru.tripon97@gmail.com>2023-05-14 14:20:24 +0300
commitffcc58cb3e89c502cfc12183d091dd9719ab436c (patch)
treef247a5b6d21cf71ea46782286fadde926db61d84 /launcher/tools/JProfiler.cpp
parentef6cbdfa2ade6a5f1ccb7253c1647ce1e9d5442d (diff)
parentd5c6a1b4d1e6d052e42366d19ffa0047168e030d (diff)
downloadPrismLauncher-ffcc58cb3e89c502cfc12183d091dd9719ab436c.tar.gz
PrismLauncher-ffcc58cb3e89c502cfc12183d091dd9719ab436c.tar.bz2
PrismLauncher-ffcc58cb3e89c502cfc12183d091dd9719ab436c.zip
Merge branch 'develop' of https://github.com/PrismLauncher/PrismLauncher into develop
Diffstat (limited to 'launcher/tools/JProfiler.cpp')
-rw-r--r--launcher/tools/JProfiler.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/launcher/tools/JProfiler.cpp b/launcher/tools/JProfiler.cpp
index 1dc0d109..15c0cab6 100644
--- a/launcher/tools/JProfiler.cpp
+++ b/launcher/tools/JProfiler.cpp
@@ -68,8 +68,8 @@ void JProfiler::beginProfilingImpl(shared_qobject_ptr<LaunchTask> process)
profiler->setArguments(profilerArgs);
profiler->setProgram(profilerProgram);
- connect(profiler, SIGNAL(started()), SLOT(profilerStarted()));
- connect(profiler, SIGNAL(finished(int, QProcess::ExitStatus)), SLOT(profilerFinished(int,QProcess::ExitStatus)));
+ connect(profiler, &QProcess::started, this, &JProfiler::profilerStarted);
+ connect(profiler, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &JProfiler::profilerFinished);
m_profilerProcess = profiler;
profiler->start();