Qml: Use QtcProcess

Change-Id: I12ff58739db14952bdf38355f0fe3b332f57f330
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Artem Sokolovskii
2021-08-25 13:50:10 +02:00
parent 99cf99579e
commit bf2954ffbf

View File

@@ -54,6 +54,7 @@
#include <utils/algorithm.h>
#include <utils/infobar.h>
#include <utils/qtcprocess.h>
#include <QDebug>
#include <QLoggingCategory>
@@ -97,9 +98,10 @@ static void openQDS(const QString &qdsPath, const Utils::FilePath &fileName)
bool qdsStarted = false;
//-a and -client arguments help to append project to open design studio application
if (Utils::HostOsInfo::isMacHost())
qdsStarted = QProcess::startDetached("/usr/bin/open", {"-a", qdsPath, fileName.toString()});
qdsStarted = Utils::QtcProcess::startDetached({"/usr/bin/open", {"-a", qdsPath, fileName.toString()}});
else
qdsStarted = QProcess::startDetached(qdsPath, {"-client", fileName.toString()});
//ToDo change qdsPath type to FilePath
qdsStarted = Utils::QtcProcess::startDetached({Utils::FilePath::fromString(qdsPath), {"-client", fileName.toString()}});
if (!qdsStarted) {
QMessageBox::warning(Core::ICore::dialogParent(),