summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qprocess.cpp
diff options
context:
space:
mode:
authorJuha Vuolle <juha.vuolle@qt.io>2025-04-07 09:18:14 +0300
committerJuha Vuolle <juha.vuolle@qt.io>2025-05-07 19:14:36 +0300
commitc39136ed4fb88dfbd5cb26925d4d9ca745571f05 (patch)
tree6af14ae11b7291db1ed26397f3649404ff725346 /src/corelib/io/qprocess.cpp
parentd531d31e1db9a84a907c10f89b557c744100ab94 (diff)
Make QProcess::splitCommand() available without process feature
QProcess::splitCommand() is a static function that is used at least by Qt for Android without needing rest of the process-feature support (QProcess). Declare a simple QProcess class when the process-feature is not enabaled. This class makes the static splitCommand() function available. Fixes: QTBUG-135655 Change-Id: I97dc054c3007e98bd786cbe092ffc78e3cc201e5 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/io/qprocess.cpp')
-rw-r--r--src/corelib/io/qprocess.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/io/qprocess.cpp b/src/corelib/io/qprocess.cpp
index 57ddb664934..9ae22f68b8e 100644
--- a/src/corelib/io/qprocess.cpp
+++ b/src/corelib/io/qprocess.cpp
@@ -2422,6 +2422,7 @@ void QProcessPrivate::start(QIODevice::OpenMode mode)
errorString.clear();
startProcess();
}
+#endif // QT_CONFIG(process)
/*!
\since 5.15
@@ -2472,6 +2473,7 @@ QStringList QProcess::splitCommand(QStringView command)
return args;
}
+#if QT_CONFIG(process)
/*!
\since 5.0