Merge QProcess::startDetached(QString, QStringList, ...) overloads
Change-Id: Ic74f78c2bdf9acf0f91df3151e82cf2bf2602c1d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
This commit is contained in:
parent
d0911d0a92
commit
3dbfded87e
@ -2542,18 +2542,6 @@ bool QProcess::startDetached(const QString &program,
|
||||
return process.startDetached(pid);
|
||||
}
|
||||
|
||||
/*!
|
||||
\internal
|
||||
*/
|
||||
bool QProcess::startDetached(const QString &program,
|
||||
const QStringList &arguments)
|
||||
{
|
||||
QProcess process;
|
||||
process.setProgram(program);
|
||||
process.setArguments(arguments);
|
||||
return process.startDetached();
|
||||
}
|
||||
|
||||
/*!
|
||||
\obsolete
|
||||
\overload startDetached()
|
||||
|
@ -263,14 +263,7 @@ public:
|
||||
static int execute(const QString &command);
|
||||
#endif
|
||||
static bool startDetached(const QString &program, const QStringList &arguments,
|
||||
const QString &workingDirectory
|
||||
#if defined(Q_QDOC)
|
||||
= QString()
|
||||
#endif
|
||||
, qint64 *pid = nullptr);
|
||||
#if !defined(Q_QDOC)
|
||||
static bool startDetached(const QString &program, const QStringList &arguments); // ### Qt6: merge overloads
|
||||
#endif
|
||||
const QString &workingDirectory = QString(), qint64 *pid = nullptr);
|
||||
#if QT_DEPRECATED_SINCE(5, 15)
|
||||
QT_DEPRECATED_X(
|
||||
"Use QProcess::startDetached(const QString &program, const QStringList &arguments) instead"
|
||||
|
Loading…
x
Reference in New Issue
Block a user