summaryrefslogtreecommitdiff
path: root/tests/manual/process
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2019-06-06 16:27:55 +0200
committerhjk <hjk@qt.io>2019-06-11 08:11:07 +0000
commitca4ba34229c247027074c25abf51bf02ff15af96 (patch)
treef5f93acda470948ec0f07b1dbfe5a58333bcb8bb /tests/manual/process
parent021d3a6c59264e4aac0284628b8d2daadbad4ed7 (diff)
downloadqt-creator-ca4ba34229c247027074c25abf51bf02ff15af96.tar.gz
Use Utils::FilePath in SynchronousProcess
Adapt callers and surrounding code. Change-Id: Ie6c1883a44169cf9d790d06b660f46d24dc24c89 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/manual/process')
-rw-r--r--tests/manual/process/mainwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/manual/process/mainwindow.cpp b/tests/manual/process/mainwindow.cpp
index 7a99e8a872..85a7b2ef9f 100644
--- a/tests/manual/process/mainwindow.cpp
+++ b/tests/manual/process/mainwindow.cpp
@@ -25,6 +25,7 @@
#include "mainwindow.h"
+#include <utils/fileutils.h>
#include <utils/synchronousprocess.h>
#include <QPlainTextEdit>
@@ -56,6 +57,6 @@ void MainWindow::test()
qDebug() << "Async: " << cmd << args;
connect(&process, &Utils::SynchronousProcess::stdOutBuffered, this, &MainWindow::append);
connect(&process, &Utils::SynchronousProcess::stdErrBuffered, this, &MainWindow::append);
- const Utils::SynchronousProcessResponse resp = process.run(cmd, args);
+ const Utils::SynchronousProcessResponse resp = process.run({Utils::FilePath::fromString(cmd), args});
qDebug() << resp;
}