forked from qt-creator/qt-creator
ProjectExplorer: Extend ApplicationLauncher
Implement some more QProcess functions Change-Id: I1afe3fa5f5b353508cf300178cb50507b3dd4b3e Reviewed-by: Daniel Teske <daniel.teske@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
28b512df44
commit
6886d0ac60
@@ -97,6 +97,16 @@ Environment ConsoleProcess::environment() const
|
||||
return d->m_environment;
|
||||
}
|
||||
|
||||
QProcess::ProcessError ConsoleProcess::error() const
|
||||
{
|
||||
return d->m_error;
|
||||
}
|
||||
|
||||
QString ConsoleProcess::errorString() const
|
||||
{
|
||||
return d->m_errorString;
|
||||
}
|
||||
|
||||
QString ConsoleProcess::msgCommChannelFailed(const QString &error)
|
||||
{
|
||||
return tr("Cannot set up communication channel: %1").arg(error);
|
||||
@@ -139,6 +149,14 @@ QString ConsoleProcess::msgCannotExecute(const QString & p, const QString &why)
|
||||
return tr("Cannot execute \"%1\": %2").arg(p, why);
|
||||
}
|
||||
|
||||
void ConsoleProcess::emitError(QProcess::ProcessError err, const QString &errorString)
|
||||
{
|
||||
d->m_error = err;
|
||||
d->m_errorString = errorString;
|
||||
emit error(err);
|
||||
emit processError(errorString);
|
||||
}
|
||||
|
||||
QString ConsoleProcess::terminalEmulator(const QSettings *settings, bool nonEmpty)
|
||||
{
|
||||
if (settings) {
|
||||
|
||||
Reference in New Issue
Block a user