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:
Oswald Buddenhagen
2017-01-11 13:57:27 +01:00
parent 16bdcca60f
commit afddd1008d
4 changed files with 26 additions and 33 deletions

View File

@@ -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);
}
}