forked from qt-creator/qt-creator
windows: stub out terminal-related functions of ConsoleProcess more thoroughly
... as the concept really doesn't make any sense on windows. Change-Id: I5fa970d17e6f4c1724250b8ee8cf0fd4eafc10ca Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
This commit is contained in:
@@ -25,8 +25,6 @@
|
||||
|
||||
#include "consoleprocess_p.h"
|
||||
|
||||
#include <QSettings>
|
||||
|
||||
namespace Utils {
|
||||
|
||||
ConsoleProcess::~ConsoleProcess()
|
||||
@@ -153,19 +151,4 @@ void ConsoleProcess::emitError(QProcess::ProcessError err, const QString &errorS
|
||||
emit processError(errorString);
|
||||
}
|
||||
|
||||
QString ConsoleProcess::terminalEmulator(const QSettings *settings, bool nonEmpty)
|
||||
{
|
||||
if (settings) {
|
||||
const QString value = settings->value(QLatin1String("General/TerminalEmulator")).toString();
|
||||
if (!nonEmpty || !value.isEmpty())
|
||||
return value;
|
||||
}
|
||||
return defaultTerminalEmulator();
|
||||
}
|
||||
|
||||
void ConsoleProcess::setTerminalEmulator(QSettings *settings, const QString &term)
|
||||
{
|
||||
return settings->setValue(QLatin1String("General/TerminalEmulator"), term);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user