Remove use of system() when QT_NO_MULTIPROCESS is defined.

Some systems, like INTEGRITY, may support Posix/unix but lack system()
in certain configurations.

Change-Id: I8ef09fac03f8d16d791cdf1073f32b1c7c911776
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Rolland Dudemaine 2015-10-27 02:31:40 +01:00 committed by Thiago Macieira
parent 614acc29a7
commit 6cae64b9e4

View File

@ -42,6 +42,8 @@
QT_BEGIN_NAMESPACE
#ifndef QT_NO_MULTIPROCESS
enum { debug = 0 };
static inline QByteArray detectDesktopEnvironment()
@ -149,4 +151,24 @@ bool QGenericUnixServices::openDocument(const QUrl &url)
return launch(m_documentLauncher, url);
}
#else
QByteArray QGenericUnixServices::desktopEnvironment() const
{
return QByteArrayLiteral("UNKNOWN");
}
bool QGenericUnixServices::openUrl(const QUrl &url)
{
qWarning("openUrl() not supported on this platform");
return false;
}
bool QGenericUnixServices::openDocument(const QUrl &url)
{
qWarning("openDocument() not supported on this platform");
return false;
}
#endif // QT_NO_MULTIPROCESS
QT_END_NAMESPACE