forked from qt-creator/qt-creator
Handle setNativeArguments inside process launcher
Change-Id: I4b4db2e5cf6b3ad4d8a39614573564145f125520 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -70,8 +70,20 @@ void ProcessStartHandler::setBelowNormalPriority(QProcess *process)
|
||||
[](QProcess::CreateProcessArguments *args) {
|
||||
args->flags |= BELOW_NORMAL_PRIORITY_CLASS;
|
||||
});
|
||||
#else
|
||||
Q_UNUSED(process)
|
||||
#endif // Q_OS_WIN
|
||||
}
|
||||
|
||||
void ProcessStartHandler::setNativeArguments(QProcess *process, const QString &arguments)
|
||||
{
|
||||
#ifdef Q_OS_WIN
|
||||
if (!arguments.isEmpty())
|
||||
process->setNativeArguments(arguments);
|
||||
#else
|
||||
Q_UNUSED(process)
|
||||
Q_UNUSED(arguments)
|
||||
#endif // Q_OS_WIN
|
||||
}
|
||||
|
||||
} // namespace Utils
|
||||
|
||||
Reference in New Issue
Block a user