Qml: Allow user to configure port used (all project types)

Reviewed-by: dt
This commit is contained in:
Kai Koehne
2010-09-02 17:17:35 +02:00
parent cacd1a91eb
commit 6f11765dae
18 changed files with 127 additions and 80 deletions

View File

@@ -154,9 +154,7 @@ static DebuggerStartParameters localStartParameters(RunConfiguration *runConfigu
DebuggerLanguages activeLangs = DebuggerUISwitcher::instance()->activeDebugLanguages();
if (activeLangs & QmlLanguage) {
sp.qmlServerAddress = QLatin1String("127.0.0.1");
sp.qmlServerPort = rc->environment().value("QML_DEBUG_SERVER_PORT").toUInt();
if (sp.qmlServerPort == 0)
sp.qmlServerPort = Constants::QML_DEFAULT_DEBUG_SERVER_PORT;
sp.qmlServerPort = runConfiguration->qmlDebugServerPort();
sp.environment << QString(Constants::E_QML_DEBUG_SERVER_PORT)
+ QLatin1Char('=') + QString::number(sp.qmlServerPort);