forked from qt-creator/qt-creator
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:
@@ -54,6 +54,7 @@
|
|||||||
|
|
||||||
#include <utils/algorithm.h>
|
#include <utils/algorithm.h>
|
||||||
#include <utils/infobar.h>
|
#include <utils/infobar.h>
|
||||||
|
#include <utils/qtcprocess.h>
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
#include <QLoggingCategory>
|
#include <QLoggingCategory>
|
||||||
@@ -97,9 +98,10 @@ static void openQDS(const QString &qdsPath, const Utils::FilePath &fileName)
|
|||||||
bool qdsStarted = false;
|
bool qdsStarted = false;
|
||||||
//-a and -client arguments help to append project to open design studio application
|
//-a and -client arguments help to append project to open design studio application
|
||||||
if (Utils::HostOsInfo::isMacHost())
|
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
|
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) {
|
if (!qdsStarted) {
|
||||||
QMessageBox::warning(Core::ICore::dialogParent(),
|
QMessageBox::warning(Core::ICore::dialogParent(),
|
||||||
|
Reference in New Issue
Block a user