Merge remote-tracking branch 'origin/4.5'

Conflicts:
	src/plugins/debugger/debuggerruncontrol.cpp
	src/plugins/projectexplorer/gcctoolchain.cpp

Change-Id: Iaad0659293681cce4266fc3e4ba2a4f2068de911
This commit is contained in:
Eike Ziller
2017-10-09 12:09:27 +02:00
256 changed files with 4735 additions and 4046 deletions

View File

@@ -48,9 +48,9 @@ enum { debug = 0 };
#define CHECK_STATE(s) do { checkState(s, __FILE__, __LINE__); } while (0)
DebuggerEngine *createQmlCppEngine(DebuggerEngine *cppEngine, bool useTerminal)
DebuggerEngine *createQmlCppEngine(DebuggerEngine *cppEngine)
{
return new QmlCppEngine(cppEngine, useTerminal);
return new QmlCppEngine(cppEngine);
}
@@ -60,10 +60,10 @@ DebuggerEngine *createQmlCppEngine(DebuggerEngine *cppEngine, bool useTerminal)
//
////////////////////////////////////////////////////////////////////////
QmlCppEngine::QmlCppEngine(DebuggerEngine *cppEngine, bool useTerminal)
QmlCppEngine::QmlCppEngine(DebuggerEngine *cppEngine)
{
setObjectName("QmlCppEngine");
m_qmlEngine = new QmlEngine(useTerminal);
m_qmlEngine = new QmlEngine;
m_qmlEngine->setMasterEngine(this);
m_cppEngine = cppEngine;
m_cppEngine->setMasterEngine(this);

View File

@@ -37,7 +37,7 @@ class QmlCppEngine : public DebuggerEngine
Q_OBJECT
public:
QmlCppEngine(DebuggerEngine *cppEngine, bool useTerminal);
explicit QmlCppEngine(DebuggerEngine *cppEngine);
~QmlCppEngine() override;
bool canDisplayTooltip() const override;

View File

@@ -246,7 +246,7 @@ static void updateDocument(IDocument *document, const QTextDocument *textDocumen
//
///////////////////////////////////////////////////////////////////////
QmlEngine::QmlEngine(bool useTerminal)
QmlEngine::QmlEngine()
: d(new QmlEnginePrivate(this, new QmlDebugConnection(this)))
{
setObjectName("QmlEngine");
@@ -266,12 +266,6 @@ QmlEngine::QmlEngine(bool useTerminal)
connect(&d->applicationLauncher, &ApplicationLauncher::processStarted,
this, &QmlEngine::handleLauncherStarted);
// we won't get any debug output
if (useTerminal) {
d->retryOnConnectFail = true;
d->automaticConnect = true;
}
debuggerConsole()->setScriptEvaluator([this](const QString &expr) {
executeDebuggerCommand(expr, QmlLanguage);
});
@@ -522,6 +516,12 @@ void QmlEngine::closeConnection()
void QmlEngine::runEngine()
{
// we won't get any debug output
if (!terminal()) {
d->retryOnConnectFail = true;
d->automaticConnect = true;
}
QTC_ASSERT(state() == EngineRunRequested, qDebug() << state());
if (!isSlaveEngine()) {
@@ -2481,9 +2481,9 @@ void QmlEnginePrivate::flushSendBuffer()
sendBuffer.clear();
}
DebuggerEngine *createQmlEngine(bool useTerminal)
DebuggerEngine *createQmlEngine()
{
return new QmlEngine(useTerminal);
return new QmlEngine;
}
} // Internal

View File

@@ -43,7 +43,7 @@ class QmlEngine : public DebuggerEngine
Q_OBJECT
public:
explicit QmlEngine(bool useTerminal);
QmlEngine();
~QmlEngine() override;
void logServiceStateChange(const QString &service, float version,