diff options
author | Orgad Shaneh <[email protected]> | 2016-06-29 19:35:23 +0300 |
---|---|---|
committer | Orgad Shaneh <[email protected]> | 2016-06-30 12:12:09 +0000 |
commit | 3410fee65f4a4fd3dd40856ea9185095eb44a16f (patch) | |
tree | 6e428709e249c84f3b7533eee61dfb270f6adf60 /src/plugins/ios/iostoolhandler.cpp | |
parent | a21e71ec1abe10fc7d399c8dc3066407066a6912 (diff) |
Ios: Use Qt5-style connects
The heavy lifting was done by clazy.
Change-Id: I1b25f0108939d87e859d0407a35f75b88fa0edc3
Reviewed-by: Tobias Hunger <[email protected]>
Diffstat (limited to 'src/plugins/ios/iostoolhandler.cpp')
-rw-r--r-- | src/plugins/ios/iostoolhandler.cpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/plugins/ios/iostoolhandler.cpp b/src/plugins/ios/iostoolhandler.cpp index c304ec8ac1e..23481f74e83 100644 --- a/src/plugins/ios/iostoolhandler.cpp +++ b/src/plugins/ios/iostoolhandler.cpp @@ -226,13 +226,16 @@ IosToolHandlerPrivate::IosToolHandlerPrivate(const IosDeviceType &devType, env.insert(QLatin1String("DYLD_FALLBACK_FRAMEWORK_PATH"), frameworkPaths.join(QLatin1Char(':'))); qCDebug(toolHandlerLog) << "IosToolHandler runEnv:" << env.toStringList(); process.setProcessEnvironment(env); - QObject::connect(&process, SIGNAL(readyReadStandardOutput()), q, SLOT(subprocessHasData())); - QObject::connect(&process, SIGNAL(finished(int,QProcess::ExitStatus)), - q, SLOT(subprocessFinished(int,QProcess::ExitStatus))); - QObject::connect(&process, SIGNAL(error(QProcess::ProcessError)), - q, SLOT(subprocessError(QProcess::ProcessError))); - QObject::connect(&killTimer, SIGNAL(timeout()), - q, SLOT(killProcess())); + QObject::connect(&process, &QProcess::readyReadStandardOutput, + q, &IosToolHandler::subprocessHasData); + QObject::connect(&process, + static_cast<void (QProcess::*)(int, QProcess::ExitStatus)>(&QProcess::finished), + q, &IosToolHandler::subprocessFinished); + QObject::connect(&process, + static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::error), + q, &IosToolHandler::subprocessError); + QObject::connect(&killTimer, &QTimer::timeout, + q, &IosToolHandler::killProcess); } bool IosToolHandlerPrivate::isRunning() |