error: 'void QProcess::start(const QString&, QIODevice::OpenMode)' is deprecated: Use QProcess::start(const QString &program, const QStringList &arguments,OpenMode mode = ReadWrite) instead.
This commit is contained in:
parent
233246730c
commit
15e731671f
|
@ -806,9 +806,9 @@ bool DialogSaveLayout::TestPdf()
|
||||||
QProcess proc;
|
QProcess proc;
|
||||||
#if defined(Q_OS_WIN) || defined(Q_OS_OSX)
|
#if defined(Q_OS_WIN) || defined(Q_OS_OSX)
|
||||||
// Seek pdftops in app bundle or near valentin.exe
|
// Seek pdftops in app bundle or near valentin.exe
|
||||||
proc.start(qApp->applicationDirPath() + QLatin1String("/")+ PDFTOPS);
|
proc.start(qApp->applicationDirPath() + QLatin1String("/")+ PDFTOPS, QStringList());
|
||||||
#else
|
#else
|
||||||
proc.start(PDFTOPS); // Seek pdftops in standard path
|
proc.start(PDFTOPS, QStringList()); // Seek pdftops in standard path
|
||||||
#endif
|
#endif
|
||||||
if (proc.waitForStarted(15000) && (proc.waitForFinished(15000) || proc.state() == QProcess::NotRunning))
|
if (proc.waitForStarted(15000) && (proc.waitForFinished(15000) || proc.state() == QProcess::NotRunning))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user