aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarek Kobus <jaroslaw.kobus@qt.io>2022-01-25 15:04:26 +0100
committerhjk <hjk@qt.io>2022-01-26 07:05:37 +0000
commit5c51351dc50558796ae37440345140d45788fa93 (patch)
treeb3f3eabb464ce539bfa940dc68ce229946c86604
parentc39a929d09b0b1a11a492083e472da4a2a504a9e (diff)
Adapt to mainstream changes
Change-Id: I9e013c433e97e218fd402b0f08d62334f52fb3c1 Reviewed-by: hjk <hjk@qt.io>
-rw-r--r--plugins/haskell/haskellmanager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/haskell/haskellmanager.cpp b/plugins/haskell/haskellmanager.cpp
index ca6995d..7168f42 100644
--- a/plugins/haskell/haskellmanager.cpp
+++ b/plugins/haskell/haskellmanager.cpp
@@ -28,9 +28,9 @@
#include <coreplugin/messagemanager.h>
#include <utils/algorithm.h>
#include <utils/commandline.h>
-#include <utils/consoleprocess.h>
#include <utils/hostosinfo.h>
#include <utils/mimetypes/mimedatabase.h>
+#include <utils/qtcprocess.h>
#include <QCoreApplication>
#include <QDir>
@@ -106,14 +106,14 @@ void HaskellManager::openGhci(const FilePath &haskellFile)
});
const auto args = QStringList{"ghci"}
+ (isHaskell ? QStringList{haskellFile.fileName()} : QStringList());
- auto p = new ConsoleProcess(m_instance);
+ auto p = new QtcProcess(QtcProcess::TerminalOn, m_instance);
p->setCommand({stackExecutable(), args});
p->setWorkingDirectory(haskellFile.absolutePath());
- connect(p, &ConsoleProcess::errorOccurred, p, [p] {
+ connect(p, &QtcProcess::errorOccurred, p, [p] {
Core::MessageManager::writeDisrupting(tr("Failed to run GHCi: \"%1\".").arg(p->errorString()));
p->deleteLater();
});
- connect(p, &ConsoleProcess::finished, p, &QObject::deleteLater);
+ connect(p, &QtcProcess::finished, p, &QObject::deleteLater);
p->start();
}