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:
parent
614acc29a7
commit
6cae64b9e4
@ -42,6 +42,8 @@
|
|||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
#ifndef QT_NO_MULTIPROCESS
|
||||||
|
|
||||||
enum { debug = 0 };
|
enum { debug = 0 };
|
||||||
|
|
||||||
static inline QByteArray detectDesktopEnvironment()
|
static inline QByteArray detectDesktopEnvironment()
|
||||||
@ -149,4 +151,24 @@ bool QGenericUnixServices::openDocument(const QUrl &url)
|
|||||||
return launch(m_documentLauncher, 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
|
QT_END_NAMESPACE
|
||||||
|
Loading…
x
Reference in New Issue
Block a user