aboutsummaryrefslogtreecommitdiff
path: root/launcher/tools
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-05-13 19:06:47 +0200
committerGitHub <noreply@github.com>2023-05-13 19:06:47 +0200
commitd5c6a1b4d1e6d052e42366d19ffa0047168e030d (patch)
tree8ba9746a188c39003213839825552543e3f1a48f /launcher/tools
parentc5aff7cc1ef43a1326bd3ce0c83e29669e2ff43f (diff)
parent6b6d6a01dc9cf05715f01e3a549740b169ef9ae3 (diff)
downloadPrismLauncher-d5c6a1b4d1e6d052e42366d19ffa0047168e030d.tar.gz
PrismLauncher-d5c6a1b4d1e6d052e42366d19ffa0047168e030d.tar.bz2
PrismLauncher-d5c6a1b4d1e6d052e42366d19ffa0047168e030d.zip
Merge pull request #1007 from Ryex/fix/network_and_signals
Diffstat (limited to 'launcher/tools')
-rw-r--r--launcher/tools/JProfiler.cpp4
-rw-r--r--launcher/tools/JVisualVM.cpp4
2 files changed, 4 insertions, 4 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();
diff --git a/launcher/tools/JVisualVM.cpp b/launcher/tools/JVisualVM.cpp
index b1acc3c0..28ffb9cd 100644
--- a/launcher/tools/JVisualVM.cpp
+++ b/launcher/tools/JVisualVM.cpp
@@ -57,8 +57,8 @@ void JVisualVM::beginProfilingImpl(shared_qobject_ptr<LaunchTask> process)
profiler->setArguments(profilerArgs);
profiler->setProgram(programPath);
- connect(profiler, SIGNAL(started()), SLOT(profilerStarted()));
- connect(profiler, SIGNAL(finished(int, QProcess::ExitStatus)), SLOT(profilerFinished(int,QProcess::ExitStatus)));
+ connect(profiler, &QProcess::started, this, &JVisualVM::profilerStarted);
+ connect(profiler, QOverload<int, QProcess::ExitStatus>::of(&QProcess::finished), this, &JVisualVM::profilerFinished);
profiler->start();
m_profilerProcess = profiler;