From 6cae64b9e47a28f35b0d85644ae92d47d7be030f Mon Sep 17 00:00:00 2001 From: Rolland Dudemaine Date: Tue, 27 Oct 2015 02:31:40 +0100 Subject: 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 --- .../services/genericunix/qgenericunixservices.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'src/platformsupport/services/genericunix') diff --git a/src/platformsupport/services/genericunix/qgenericunixservices.cpp b/src/platformsupport/services/genericunix/qgenericunixservices.cpp index 33cb4391f0..01efa1449f 100644 --- a/src/platformsupport/services/genericunix/qgenericunixservices.cpp +++ b/src/platformsupport/services/genericunix/qgenericunixservices.cpp @@ -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 -- cgit v1.2.3