diff options
author | Sefa Eyeoglu <contact@scrumplex.net> | 2022-05-16 20:34:07 +0200 |
---|---|---|
committer | Sefa Eyeoglu <contact@scrumplex.net> | 2022-07-10 12:19:15 +0200 |
commit | 15c5bbcf222e9baa705ec0dfe5504b9db2d030ae (patch) | |
tree | 775709f036726aff249246afd4c7886c77a981b6 /launcher/java | |
parent | c36342371819a4983b5ac2b928acc6a78b857ed8 (diff) | |
download | PrismLauncher-15c5bbcf222e9baa705ec0dfe5504b9db2d030ae.tar.gz PrismLauncher-15c5bbcf222e9baa705ec0dfe5504b9db2d030ae.tar.bz2 PrismLauncher-15c5bbcf222e9baa705ec0dfe5504b9db2d030ae.zip |
fix: fix slots for Qt 6
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/java')
-rw-r--r-- | launcher/java/JavaChecker.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/launcher/java/JavaChecker.cpp b/launcher/java/JavaChecker.cpp index c3846288..87b7ffac 100644 --- a/launcher/java/JavaChecker.cpp +++ b/launcher/java/JavaChecker.cpp @@ -53,7 +53,11 @@ void JavaChecker::performCheck() qDebug() << "Running java checker: " + m_path + args.join(" ");; connect(process.get(), SIGNAL(finished(int, QProcess::ExitStatus)), this, SLOT(finished(int, QProcess::ExitStatus))); +#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0) + connect(process.get(), SIGNAL(errorOccurred(QProcess::ProcessError)), this, SLOT(error(QProcess::ProcessError))); +#else connect(process.get(), SIGNAL(error(QProcess::ProcessError)), this, SLOT(error(QProcess::ProcessError))); +#endif connect(process.get(), SIGNAL(readyReadStandardOutput()), this, SLOT(stdoutReady())); connect(process.get(), SIGNAL(readyReadStandardError()), this, SLOT(stderrReady())); connect(&killTimer, SIGNAL(timeout()), SLOT(timeout())); |