Fix deprecation warning.
'start' is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead.
This commit is contained in:
parent
b12124603e
commit
c9084d2039
|
@ -407,7 +407,11 @@ auto VLayoutExporter::SupportPDFConversion() -> bool
|
|||
auto Test = [](const QString &program)
|
||||
{
|
||||
QProcess proc;
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 0, 0)
|
||||
proc.start(program);
|
||||
#else
|
||||
proc.start(program, QStringList());
|
||||
#endif
|
||||
|
||||
const int timeout = 15000;
|
||||
if (proc.waitForStarted(timeout) && (proc.waitForFinished(timeout) || proc.state() == QProcess::NotRunning))
|
||||
|
|
Loading…
Reference in New Issue
Block a user